菩提本无树,明镜变非台 本来无一物,何处惹尘埃
分类: LINUX
2010-11-03 00:00:00
关键字 | 位长(字节) | 格式化字符串 | 关键字 | 位长(字节) | 格式化字符串 |
char | 1 | %c | signed short | 2 |
|
unsigned char | 1 |
|
long int |
4或 8 |
%li,%ld |
signed char | 1 |
|
unsigned long |
4或 8 |
%lu |
int |
2(16位系统)或 4 |
%i,%d | signed long |
4或 8 |
|
unsigned int |
2或 4 |
%u | long long | 8 | %lli |
signed int |
2或 4 |
%i,%d | unsigned long long | 8 | %llu |
short int | 2 | %hi | float | 4 | %f,%e,%g |
unsigned short | 2 | %hu | double | 8 | %f,%e,%g |
|
|
|
long double | 8或以上 | %Lf,%Le,%Lg |