0
int main()
{
int i=2;printf("%d,%d,%d\n",i++,i++,i);
return 0;
}

Output of the program is incorrect in my opinion ! Please help me out.

  • 1
    Order of evaluation of function parameters is undefined. – jxh Nov 22 '16 at 19:11
  • Moreover, the post-increment hasn't to be done immediately but can be delayed to the next sequence point. That's way such expressions does not work, even the order of evaluation is defined. – Amin Negm-Awad Nov 22 '16 at 19:31

0 Answers0