The Function of "Output Domain Width" in C Language

If the output width is greater than what you set, the output will be based on the actual output;

If it is less than the value you set, please fill it with spaces, for example:

int a = 123;

printf("%5d,I ");

The output is 123 (right-aligned, notice that there are two spaces in front);

printf("%-5d,I ");

The output is 123 (left-aligned, note that there are two spaces behind it);

Handmade, hope to adopt, don't understand can ask. . .