getcharGets one character from the standard input stream | |
ArgumentsNoneReturn ValueThe next character read from the standard input stream is returned if the function was successful. Otherwise, EOF is returned in case of end-of-file or error.ExplanationThe next character is read from the standard input stream and returned.getchar() is equivalent to getc(stdin). See Alsogetc(), gets() |