Home > Back-end >  ASCII codes
ASCII codes

Time:04-28

Anyone who can explain the output

CodePudding user response:

refer to the original poster distant Alan reply:
anyone who can explain the output

Char is a symbol, said - the range of 128-127, a + 1 overflow, the result b=(10000000) for binary complement form, corresponding to the original code for - 128, b later converted into 4 bytes integer print, is still a complement form - 128 (1111111110000000), as for the printf in a + 1 as a first converted to an integer, the integer plus 1 will not overflow, and by the integer of print,
  • Related