2=00000010
4=00000100
5=00000101
d=a|b 等于00000110 &00000101 等于 00000100
|取不同 &取相同
#include "stdio.h" int main(){ unsigned char a=2,b=4,c=5,d; d=a|b;d&=c; printf("%d\n",d); }
2=00000010
4=00000100
5=00000101
d=a|b 等于00000110 &00000101 等于 00000100
|取不同 &取相同
#include "stdio.h" int main(){ unsigned char a=2,b=4,c=5,d; d=a|b;d&=c; printf("%d\n",d); }