Steven W. answered 10/13/16
Tutor
4.9
(4,315)
Physics Ph.D., professional, easygoing, 11,000+ hours tutoring physics
Very good question, Arturo! I had not thought about this in a while. The above expression assumes that, for solids and liquids, with no phase change, the heat transfer is directly related to temperature change. My first thought is that, for gases, it can be a bit more complicated. However, at a fundamental level, it might be very similar. The two specific heat expressions just refer to "at constant pressure" and "at constant volume," so -- once you have determined if either of those cases applies -- you may very well be able to use the same expression, as long as you can assume that all the heat coming out of one gas is going into another.
There are plenty more situations gases can be in, but -- as a first cut -- I would say the same expression should work. But let me think about it more. Thanks for the question!

Arturo O.
10/13/16