An ideal gas is taken through the process ABC shown in figure. Then
(2)
AB is isothermal compression process. So work done by the gas is negative. Therefore from it is clear that Q is negative i.e., heat is rejected.
BC is isobaric compression process. As T decreases, internal energy also decreases.