生死无说

导航

&的优先级属于二级(比较低),写程序时要注意

#include<stdio.h>
int main()
{
    int a=0b11100111;
    if((a&0x0f)==0b0111)//'&'优先级还没有'=='优先级高
    {
        printf("%d\n",t);
    }
    return 0;
}

  

posted on 2020-03-30 10:43  只是很想你  阅读(155)  评论(0编辑  收藏  举报