what is the difference between getch() and getchar()?
Answer Posted / barath krishnan
getchar() is very similar to using scanf with %c. The getch() function is normally used in 2 cases
1 To read any character not just numbers and alphabets but any
non white space character ( any key oder dan num/caps/scroll locks or tab keys)
2 To keep reading from a stream of inputs without forcing the user to press enter key at the end of each input unlike getchar()
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is struct node in c?
In C, What is the #line used for?
What is file in c preprocessor?
Do you know pointer in c?
What is nested structure in c?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
What is the difference between abs() and fabs() functions?
What is the difference between int main and void main?
What is the most efficient way to count the number of bits which are set in an integer?
What functions are used in dynamic memory allocation in c?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is function pointer c?
What is the difference between single charater constant and string constant?
Why is event driven programming or procedural programming, better within specific scenario?
Explain zero based addressing.