Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What does negation mean in C language?
What does negation mean in C language?

I think this is the case, 0x11 binary means 00010001, ~ followed by 11101110, converted to hexadecimal 0xEE, this is 2 bytes in TC, and in VC The integer is 4 bytes, so when 0x11 is converted to binary, eight zeros should be added in front, that is, 0000000000010001~ and then 1111111111101110. After converting to hexadecimal, it is 0xFFEE.