关于++的问题
今天在csdn看到一篇文章
里面有代码
int main()
{
int ix, iy,a,b,c;
iy = 1;
ix = ( iy++ ) + ( iy++ ) + ( iy++ );
printf( "this is %d\n", ix );
iy = 1;
ix = ( ++iy ) + ( iy++ ) + ( iy++ );
printf( "this is %d\n", ix );
iy = 1;
ix = ( ++iy ) + ( ++iy ) + ( iy++ ) ;
printf( "this is %d %d\n", ix);
iy = 1;
ix = ( ++iy ) + ( ++iy ) + (++iy ) ;
printf( "this is %d %d \n", ix);
return 0;
}
在VC6.0下运行结果为
3
6
9
10
无法理解,请各位解答