6
#include <stdio.h>
void main()
{
    int x = 99;
    int y = sizeof(x++);
    printf("x is %d", x);
}

The result of above program is:

x is 99

Why ? Can anyone tell why x is not incremented in sizeof operator.

Shafik Yaghmour
  • 154,301
  • 39
  • 440
  • 740
anand
  • 392
  • 3
  • 8

0 Answers0