C
Character Input:
int getc (FILE * stream) read from the specified input character stream stream (stdin represent characters)
int getch (); keyboard characters are read into the buffer, does not echo
int getchar (); to read characters into the keyboard buffer, echo
The character input common format
char ch;
ch=getc(stdin);
ch=getch();
ch=getchar();
And scanf () function is not the same, a character input function spaces, tabs, line breaks as received character
Enter the string:
gets () to read all the characters entered from the keyboard, including spaces
char name[5];
gets(name);