printf 字符

printf 字符
類型名稱其他名稱字符
intsigned%d
unsigned intunsigned%u、%o、%x
_int8char%c %c、%d、%u
unsigned _int8unsigned char%c %c、%d、%u
_int16short、short int、signed short int%hd
unsigned _int16unsigned short、unsigned short int%hu、%ho、%hx
_int32signed、signed int、int%d
unsigned _int32unsigned、unsigned int%u、%o、%x
_int64long long、signed long long%I64d
unsigned _int64unsigned long long%I64u、%I64o、%I64x
bool
char
signed char%c %c、%d、%u
unsigned char%c %c、%d、%u
shortshort int、signed short int%hd
unsigned shortunsigned short int、WORD%hu、%ho、%hx
longlong int、signed long int%ld
unsigned longunsigned long int、DWORD%lu、%lo、%lx
long long無 (但是相當於 _int64)%I64d
unsigned long long無 (但是相當於 unsigned _int64)%I64u、%I64o、%I64x
enum
浮動%f、%e、%g
double%lf、%le、%lg %f、%e、%g
長雙精度%lf、%le、%lg %f、%e、%g

留言