Why does the & operator only work in variables and not in inline statements

后端 未结 0 606
生来不讨喜
生来不讨喜 2020-11-28 07:07
printf("%i\\n",2&2==2);

This should print out a 1 but I get a 0, why is this?

int ans=2&2;
printf("%i\\n"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题