@myusernotyours - Looking back, I guess the question was a little vague, sorry. The console awaited my input before showing the first printf() statement as Banfa said.
@murugesandins - Yes, that is what the program was supposed to do.
@Banfa - That was the issue. Thank you sir, may your cup'eth overflow.
User Profile
Collapse
-
fgets is executed before any other code is run
Hi everybody
I am a C newbie. A simplified version of my problem is below. The issue is that when the code is run, fgets is executed before any of the other code is run. I'm sure its some minor detail I am missing. Any help you can give in the matter would be appreciated.
Thanks in advance.
/* *************** *************** *************** ************* */
#include <stdio.h>
char...
No activity results to display
Show More
Leave a comment: