Home > other >  I want to ask about this if in the function & amp; What's the meaning operation
I want to ask about this if in the function & amp; What's the meaning operation

Time:10-11

CodePudding user response:

& With (AND) operating in accordance with a

CodePudding user response:

Can give you an example?

CodePudding user response:

The bitwise and,
0 x80 binary 0 b10000000,
Temp& 0 x80 concluded whether temp bit7 bit is 1, here is the result of the two kinds of 0 x00 or 0 x80
Into the if (), not number of 0 is true, will continue to go down; Number of 0 is false, just skip the steps in the if, continue to go down

CodePudding user response:

Thank you for your help

CodePudding user response:

Feel your help

CodePudding user response:

Bitwise and is binary, in accordance with the bit and operation

CodePudding user response:

Test whether or not the highest temp bit is 1
  • Related