欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

C语言中的%i

程序员文章站 2022-07-14 07:59:24
...
【版权申明】转载请附上出处链接 

C语言中的%i

%i的作用与%d一致,详情可见man 3 printf

d, i   
The int argument is converted to signed decimal notation.

The precision, 
if any, gives the minimum number of digits that  must  appear;  
if  theconverted value requires fewer digits, it is padded on the left with zeros.  
The default precision is 1.  When 0 is printed with an explicit pre‐cision 0, the output is empty.

相关标签: Linux C c语言