Streams
There are three special file pointers which are defined in stdio.h:
stdin
refers to standard input from the keyboardstdout
refers to standard output on the screenstderr
refers 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)