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
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
How can I copy just a portion of a string?
which type of aspect you want from the student.
What is a scope resolution operator in c?
What is a buffer in c?
What is character constants?
What is the difference between strcpy() and memcpy() function in c programming?
How can I delete a file?
What are the keywords in c?
where are auto variables stored? What are the characteristics of an auto variable?
Can we change the value of #define in c?
What is the code in while loop that returns the output of given code?
Is c is a low level language?
In C, What is the #line used for?
How we can insert comments in a c program?