Why do we use -3 or any Number in between % and d ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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--);

14th Oct 2019, 6:56 PM
Prince
Prince - avatar
1 Answer
+ 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