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:
- Constants in C Language 2011-12
- what is the main function of bool explain in detail?
- How to write Wav files in c++
- Problem with the complexity of the program 2011
- what are Templates?
- c++ linux ubuntu 10.04 help with GUI in c++ 2011
- is the dot operator connect the class object and a member...
- subtyping and specilition in c++ 2011
- please tell me a proper defination of a function?
- Problem with adding Symbols inside the C++ and java...
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)