我希望程序返回4位数,即使该数字小于4位数. 例如: 1 - > 0001我试过:
printf("%4d",number);
但它只返回三个空格,然后是第一个,它之前不添加0.
c printf
c ×1
printf ×1