[讨论]位移+自增运算!
看看如下的自增运算:#include<stdio.h>
int
main()
{
int a=1;
int b=a-(++a);
printf("The a is :%d and the b is %d:\n",a,b);
return 0;
}
图片是第一个:
在看看位移运算:
#include<stdio.h>
int
main()
{
int a=1;
int b=((a<<3)-(a<<6));
printf("The a is :%d and the b is %d:\n",a,b);
return 0;
}