Make sure you add the new line "\n" to your printf statement. Usually, at least on UNIX systems, stdout buffered in a line, so a newline character causes the line to appear immediately. You probably omitted "\n" (or your output did not blush for another reason), and therefore you cannot see the printed line.
Another option is to reset the output yourself using fflush(stdout) after calling printf .
source share