getchar() function takes a single character as input from user. You can store the character into a character variable or an array. For example if you have a character variable
char s;
then s = getchar(); statement will take one character from the user and store it in s.
Similarly you can get input in a character array using a loop where each iteration of loop will store one character in array's elements.


Sponsored Links