In C
,
printf("%5d", 42);
Will print 42 using 5 spaces. I want to replace those blank spaces with 0
or any number or character. What should I do ?
In C
,
printf("%5d", 42);
Will print 42 using 5 spaces. I want to replace those blank spaces with 0
or any number or character. What should I do ?