printf statements can be used in C programs to write to the standard output. However, when several nodes are executing processes simultaneously, the sequence of execution of print statements is not easily predictable. Thus, using printf may be unsuitable for some applications. In such cases, files could be used for output.
Similar restrictions apply to FORTRAN programs too.