object
stdout
<cstdio>
Standard output stream
The standard output stream is the default destination of regular output for applications. It is usually directed to the output device of the standard console (generally, the screen).
stdout can be used as an argument for any function that expects an output stream as one of its parameters, like
fputs or
fprintf.
Although it is generally safe to assume that the default destination for
stdout is going to be the screen, bear in mind that this may not be the case even in regular console systems, since
stdout can be redirected at the operating system level. For example, many systems, among them DOS/Windows and most UNIX shells, support the following command syntax:
myapplication > example.txt
to redirect the output of
myapplication to the file
example.txt instead of the screen.
It is also possible to redirect
stdout to some other source of data from within a program using the
freopen function.