printf("Signed Max:%d\n", 0x7FFFFFFF);
printf("Signed Min:%d\n", 0x80000000);
printf("Unsigned Max:%u\n", 0xFFFFFFFF);
printf("Unsigned Min:%u\n", 0x00000000);
- By default are considered to be signed integers.
- Use “U” suffix to force unsigned.
- if mix unsigned and signed in a single expression, then signed values implicitly cast to unsigned.
时间: 2024-10-11 21:06:35