c語言輸出自動補0

int main() { int n=1; printf("%d\n",n); printf("%3d\n",n); printf("%03d\n",n); printf("%-3d",n); } 輸出結果: 
相關文章
相關標籤/搜索