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:
- where we use scoope resulation operation in c++?
- what is the value of cardinality(*) in association in c++ ?
- what are Templates?
- program Output in C++ 2012
- how often do we require to use inline functions and macros....
- can we use Microsoft Visual Studio Ultimate 2010 for...
- what is the differnce b/w overriding and abstraction in c++...
- c++ code 2011
- why huffman tree is not an AVL tree not how?
- Problem with the complexity of the program 2011
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)