I am trying to print a string of different data types, and my second column needs to be left justified. My code looks like:
printf("%15d%-3d", variable, name)
The second column keeps running into the first, so instead of columns like this:
1 7
23 16
450 125
they look like this:
17
2316
450125
If anyone has any ideas on how I can fix my formatting, problem, I would really appreciate help. Thanks.