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 variableView more random threads:
- if we have a program to check, how we can tell how many...
- Is it possible to make data type array which act as java...
- the uses of queues and stacks? the application of binery...
- #include where is this file?
- can we define objects without any class?
- Boolean data problem in c++ 2011-12
- vector index problem in c++ 2011
- What is abstraction in c++ 2011?
- floor conversion error in c++ 2011
- this pointer in c++
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
There are currently 1 users browsing this thread. (0 members and 1 guests)