Normal output decimal number% d,% 2d refers to the 2-bit wide decimal number, the right alignment, the excess will be omitted;% 02d refers to the output 2-digit decimal number, right aligned, if not enough bits left 0s.
Difference% 2d,% 02d,% d of
Guess you like
Origin www.cnblogs.com/summerpine/p/11460688.html
Recommended
Ranking