This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

a!=b&0xff

unsigned char a=0x12; unsigned char b=0x22; if(a!=b&0xff)//is not true,but why? a = 0; else b = 0;//execute this

"a!=b" is true ,so “true &0xff ”should be true,I want to know the c51 compiler why do this?

Thanks!

0