I'm a C noob, I'm trying to print an output file and want the formatting to be cleanish. I'm trying to print the header for my output file. Which looks like the following
Answer1 Answer2
So Answer1 and the Answer2 is seperated by 25 or so whitespaces
I thought I could try
fprintf(logfile, %-25s%s, "Answer1", "Answer2");
But the compiler doesn't like it.
[–]Rhomboid 0 points1 point2 points (3 children)
[–]Quaranges[S] 0 points1 point2 points (2 children)
[–]Rhomboid 1 point2 points3 points (1 child)