What does the format specifier %10d in printf("%10d", num); do?

1
Prints the number with leading zeros in a field of 10 columns
2
Prints the number in a field of 10 columns
3
Prints only the number without any extra spaces
4
Prints the number left-aligned in a field of 10 columns

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation