Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - int a =-2; printf("%u,a "); What is the output result? I need a clear explanation, thank you very much! !
int a =-2; printf("%u,a "); What is the output result? I need a clear explanation, thank you very much! !
The number range of unsigned int type is 0-4294967295.

If-1 is assigned to unsigned int type, it is equal to 4294967295.

-2 is smaller than-1 1, so it is 4294967295-1= 4294967294;