Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - VB Question w = True t=5 and W Why is the final value of T 5w = False t=0? Ask experts to answer.
VB Question w = True t=5 and W Why is the final value of T 5w = False t=0? Ask experts to answer.
The characteristics of And operation are: when the corresponding bits of two numbers are 1, the result is 1, otherwise it is 0;

On the other hand, true =-1 = & HFFFF, that is, true is equivalent to an integer of 1 bit, so when it is and with any number, the result remains unchanged; And False = 0, in other words, False is an integer with all bits of 0, so when it is AND with any number, the result is 0.

I don't know if you understand.