We all know in C-based languages, printf(\"%11d\", some_int); means right align within an 11 character field, but what if I want to replace this constant 1
You can use the * character to specify the field width in its own argument:
*
printf("%*d", some_width, some_int);