Discussion in 'C++' started by jainprateek2000, Dec 9, 2009.
a=5,c are integers
d=1.5 is floating type
I believe it should be 12. The a++ is superfluous to this expression as it won't be evaluated until after the full expression (after the semicolon) so it has no affect on the outcome; however, I seem to recall from the C++ standard that the behavior of an expression involving a postfix or prefix operator and the operand of those operators in the same expression is undefined.
Separate names with a comma.