int 32位
short int 16位
long int 简称 int 32位
char 8位
unsigned char 无符号字符 0—255
unsigned short int 0-65536 16位
unsigned int 4字节
整数的输出格式:
%d 十进制整数
%i 十进制整数
%u 无符号十进制整数
%x 十六进制(a--f)
%X 十六进制(A--F)
%o 八进制
float %f输出 4字节
double 8字节
优先级:算术优先、关系其次、逻辑最后
/000 表示8进制数, 相当于 0ooo , ’/123’=0123
/xhh 表示16进制数,相当于0xhh , ‘/x4a’=0x4a
# :(格式化字符串中用)printf(“%#X”,x);表示x以十六进制输出,前带0X
Used with o, x or X specifiers the value is preceeded with 0, 0x or 0X respectively for values different than zero.
Used with e, E and f, it forces the written output to contain a decimal point even if no digits would follow. By defa