what is difference between
1. y=++x++;
2. y=(++x)++;
3. y=++(x++);
1. y=++x++;
2. y=(++x)++;
3. y=++(x++);
y=++x++; //ERROR y=(++x)++; //OK y=++(x++); //ERROR
x++ = y; //ERROR.
++x = y; //OK.
y=++x++; //ERROR y=(++x)++; //OK y=++(x++); //ERROR
x++ = y; //ERROR.
++x = y; //OK.
++x = y;
int x = 0; int y = 0; ++x = x; ++y = y+5; cout << x << " " << y;
error C2106: '=' : left operand must be l-value
int x[ 2 ]; int *ptr = x;
++*ptr = 0;
*++ptr = 0; *ptr++ = 0;
*++ptr = 0;
*ptr++ = 0;
printf("%p\n", &a ); printf("%p\n", &++a );
printf("%p\n", &a ); printf("%p\n", &++a );
&++a
'&' requires l-value
int y = 0; size_t size = sizeof( ++y );
Comment