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
  • 148,593
  • 36
  • 425
  • 712
anand
  • 382
  • 3
  • 8

0 Answers0