I am working on a project for my C Programming Class. I know that when specifying width in a printf statement WITH a variable, it would look like this:
printf("%03d\n", tvQuantity);
With 3 being the width and 0 stating we want the number preceded by 0's.
My question is, how would I define a width in a printf statement where I'm not calling a variable? For example, to add a width of 6 to the following statement:
printf("Text here");
As there is no format specifier (such as %d), where would I place my width and other formatting arguments?