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