Originally Posted by xpi0t0s
> Solution for Problem 2 :
> Output is always 7 6.
Wrong. The output is UNDEFINED. Use of side effects twice in the same expression does not have a guaranteed result and is compiler dependent. For example in Visual Studio 2008, the output is 7 7.
Yeah, that's right !
I had tested only with TC++ and MinGW.
But, as the author is using TC, he will get the result as 7 6.