+ 1
Why this code does not give formatted output as %5d should shift digits.
https://code.sololearn.com/cLL1OuF6uBH2/?ref=app required o/p: 5 4 3 2 1
2 Answers
+ 1
c compiler detect %d as an specifier
and only numbers are allow in between % and d
but c compiler allow one thing if user want to put variable with %d then can use wild card and that is *