Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Unsigned integer, why output such a result?
Unsigned integer, why output such a result?
%d is an output signed integer. Use %u to output unsigned integers.

The size of int depends on the number of bits in the computer and the compiler. The maximum unsigned int of 16 bit is 65535, but now most of them are 32-bit compilers and computers, and the maximum unsigned int is 2 to the 32nd power minus 1, 429497295.