character variables

A variable that stores a character is called a character variable. A character variable is defined thusly:

char subha;

A char variable can store exactly one character. The character may be any ASCII character representing either a letter or a digit.

getchar

The C function getchar is used to read a new character entered at the keyboard. getchar is called by using its name.

subha = getchar();

getchar causes the computer to wait until the user keys in a letter from the keyboard.

A set of parenthesis is required after getchar. This implies getchar is not a variable, it is a funtion.