int a=1;
int c1 = ( a *= 2 ) + ( a += 3 );
int c1 = ( a *= 2 ) + ( a += 3 );
a=1;
int c2 = ( a += 3 ) + ( a *= 2 );
为啥c1=10,c2=16啊??
int c2 = ( a += 3 ) + ( a *= 2 );
为啥c1=10,c2=16啊??
看出规律了吗?
图1和图2说明
c = (a )+ ( a )
图3说明
图3说明
c = (a)+ ( a ) + ( a )