Non-formatted Input and Output functions:
These are console Input Output Library functions that deal with one character at a time and string function for an array of characters (string). Unformatted I/O functions work only with character datatype (char).
Unformatted Input functions used in C are as follows:
getch()
It accepts only a single character from the keyboard. The character entered through getch() is not displayed on the screen (monitor).
Syntax for getch () in C :
char d=getch();
getche()
Like getch(), getche() also accepts only single character, but unlike getch(), getche() displays the entered character on the screen.
Syntax for getche() in C :
d=getche();
getchar()
It accepts only one character type data from the keyboard.
Syntax for getchar() in C :
d=getchar();
gets()
Accepts any line of a string including spaces from the standard Input device (keyboard). This stops reading characters from the keyboard only when the enter key is pressed.
Syntax for gets() in C :
gets(s)
Unformatted Output functions used in C are as follows:
putch
It displays any alphanumeric characters to the standard output device but displays only one character at a time.
Syntax for putch in C :
putch(c );
putchar
This displays one character at a time to the monitor.
Syntax for putchar in C :
putchar(c);
puts
It displays a single / paragraph of text to the standard output device.
Syntax for puts in C :
puts(s);
