Streams
There are three special file pointers which are defined in stdio.h:
stdinrefers to standard input from the keyboardstdoutrefers to standard output on the screenstderrrefers to the standard error device (usually the screen)
Knowing this information, we can use fprintf just like we use printf():
is equivalent to:
©
|
Cornell University
|
Center for Advanced Computing
|
Copyright Statement
|
Access Statement
CVW material development is supported by NSF OAC awards 1854828, 2321040, 2323116 (UT Austin) and 2005506 (Indiana University)
CVW material development is supported by NSF OAC awards 1854828, 2321040, 2323116 (UT Austin) and 2005506 (Indiana University)