&的优先级属于二级(比较低),写程序时要注意
#include<stdio.h> int main() { int a=0b11100111; if((a&0x0f)==0b0111)//'&'优先级还没有'=='优先级高 { printf("%d\n",t); } return 0; }
》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》
#include<stdio.h> int main() { int a=0b11100111; if((a&0x0f)==0b0111)//'&'优先级还没有'=='优先级高 { printf("%d\n",t); } return 0; }