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
Which is better malloc or calloc?
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
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
Explain how can I convert a string to a number?
Explain how many levels deep can include files be nested?
What is the difference between strcpy() and memcpy() function in c programming?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
What is difference between main and void main?
What is the role of this pointer?
What is function pointer c?
What is the use of getchar functions?
What is page thrashing?
write a program to print data of 5 five students with structures?
What is the difference between mpi and openmp?