> 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.

I like the way you nitpick about the void main speck having missed this plank.