Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C, programming to find the complement of unsigned integers, please help me analyze this program, thank you, please see the supplement:
C, programming to find the complement of unsigned integers, please help me analyze this program, thank you, please see the supplement:
this program uses octal.

the input data %o is octal

1 is an octal constant. Equal to decimal 32768, equal to hexadecimal x8

if(z==1) is the same as the complement of the original code with positive sign bit

, that is, the complement of its own

negative number is the complement of the complement except sign bit plus the complement of 1

unsigned integer-puzzling.