Jump to content

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

From Wikibooks, open books for an open world

getchar

[edit | edit source]
Syntax
#include <cstdio>
int getchar( void );

The getchar() function returns the next character from stdin, or EOF if the end of file is reached.

Related topics
fgetc - fopen - fputc - putc