• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
+ 2

Why do we use -3 or any Number in between % and d ?

Why do we use any number in%d ? Example :- printf("%-3d",l--);

cintformatprogrammingprintfprogramminglanguagecprogrammingcplspacifiersnotanswered
14th Oct 2019, 6:56 PM
Prince
Prince - avatar
1 Odpowiedź
+ 1
Read about it in the following link, under flags section. http://www.cplusplus.com/reference/cstdio/printf/
14th Oct 2019, 7:52 PM
Ipang

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Ai generated practices
2 Votes
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for “Intergalactic Champion”
1 Votes
Solving coding challenges
1 Votes
Feedback on my portfolio
0 Votes
Yo this is madness
0 Votes
Changing String Variables into int in C++
0 Votes
I am new
1 Votes
Advertising in Sololearn
0 Votes
Fill in the blank to declare a static variable.
0 Votes
How can i insert files?
1 Votes