Single Character Functions

C++ supports many character-based input and output functions for reading and writing a character. These functions can read or write one character at a time. These functions are known as unformatted console I/O functions.
Getchar() and Putchar() Functions
The functions getchar() and putchar() are single character functions. The heeader file for these functions is stdio.h.
The getchar() function reads a single character from the standard input device( keyboard). The getchar() waits for the character input until a charcter is typed at the keyboard. LEARN MORE>>

No comments: