I have several lines of output, for example:
printf("%-20s %-20s %-20s %-20s %-20s \n", "Identity", "Identity", "float", "double", "long double");
printf("%-20s %-20s %-20s %-20s %-20s \n", "Number", "LHS", "error", "error", "error");
As you can see, if I wanted to change the interval between them, I would have to change the number 20 ten times. Is there a way to parameterize a format specifier? So that changing only once will change them all?
source
share