【版权申明】转载请附上出处链接
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.