| 类型 | 范围 | 字节 | 占位符 |
| char | -128~127 | 1 | %c %hhd |
| unsigned char | 0~255 | 1 | %c %hhu |
| short | -32768~32767 | 2 | %hd |
| unsigned short | 0~65535 | 2 | %hu |
| int | -2^31~2^31-1 | 4 | %d |
| unsigned (int) | 0~2^32-1 | %u | |
| long (int) |
-2^31~2^31-1(x86) -2^63~2^63-1(x64) |
4 8 | %ld |
| unsigned long (int) | 0~2^32-1 0~2^64-1 | 4 8 | %lu |
| long long (int) | -2^63~2^63-1 | 8 | %lld |
| unsigned long long (int) | 0~2^64-1 | 8 | %llu |
| float | 4 | %f %g | |
| double | %lf %lg |