0
What is the meaning of %5d in C language?
printf("%5d", a);
4 ответов
+ 1
i'm sorry, its define how much space are needed for the output. if the character/digit less than what we define (in this case is 5) then the ouput will add left padding with space until it reach the number that define before.
mostly its used for better formatting like create a table in console, so each row has same width.
0
its length
so that one is 5 digits
0
ooh, i get it,, thank you so much Taste
- 2
what? I dont get it, sorry hahah
can you explain to me again please? Taste