C++ Programming/Code/Standard C Library/Functions/putchar

From Wikibooks, open books for an open world
Jump to navigation Jump to search


[edit | edit source]
#include <cstdio>
int putchar( int ch );

The putchar() function writes ch to stdout. The code

putchar( ch );

is the same as

putc( ch, stdout );

The return value of putchar() is the written character, or EOF if there is an error.

Related topics