C's printf and fprintf(stdout,) are not printing
问题 This is a bit of an odd one. My code wasn't outputting what I thought it should. I added some print statements at various stages to see where it was going wrong. Still nothing. So I added a printf statement at the start of main. That's where I got really confused. So I presumed something funny was happening with the file descriptors. I changed the printf to a fprintf . Still nothing. Printing to stderr with fprintf does work! Why is this happening? Removing all of the body from main except