#include <stdio.h> int main() { int x, i = 8; x = -i++;//这句分解为:x = -i, i++; x = -8,i = 9 printf("x=%d, i=%d", x, i); return 0; } //x=-8, i=9
#include <stdio.h> int main( void ) { int i = 8; int x = -i++; printf( "i==%d, i==%d\n", i, x ); }