+ 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 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