i was trying to print numbers in right justified format:
suppose,
input:
printf("
%d", 1234567);
printf("
%07d", 5);
output:
1234567
0000005
but what if i want to print
------5
i'm confused here, as '-' is used for left justification
i tried using
printf("
%-d", 5);
but console shows
warning: unknown escape sequence: '-'
question from:https://stackoverflow.com/questions/65601823/printing-leading-in-c