当前位置:网站首页>A brief summary of C language printf output integer formatter

A brief summary of C language printf output integer formatter

2022-06-12 08:09:00 Ordinary people who like playing basketball

1. Integer type

32 Bit compiler :

int 4 byte 
long 4 byte 
long long 8 byte 

64 Bit compiler :

int 4 byte 
long 8 byte 
long long 8 byte 

2. Integer output

%d  The output is  int,
%ld  The output is  long,
%lld  The output is  long long;

 If it is an unsigned type : The above d It is amended as follows u
原网站

版权声明
本文为[Ordinary people who like playing basketball]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/163/202206120801092639.html