I made a C program that prints out a lot of values from a binary file. I believe the program finishes it's functions and ends before it actually displays values it spits out. So as a result I get a lovely RUN SUCCESSFUL (total time: 198ms)
plopped right in the middle of my nicely formatted output, successfully screwing with the continuity of the rest. Is there a non-intrusive way to fix this?
I have tried a while loop encasing main's return value with a scanf()
to pause the program until the user enters any value other than 0
but I'd prefer it if I could just have it run like a 'normal' program which in this case is without any user input. Thanks in advance for any advice or tips. :)