what is the use of getch() function in C program..
difference b/w getch() and getche()??
Answer Posted / yashwant/9015785079
When you will run program, the program will exit only when you press a character, note that we are talking about a character.
so try pressing numlock, shift key etc (program will not exit if you press these keys) as these are not characters. Also try the program by removing getch(),in this case program will exit without waiting for a character being pressed from keyboard.
Common use of getch is that you can view the output (if any) of your program without having to open the output window if you are using turbo c compiler or if you are not running your program from command prompt.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Can we increase size of array in c?
Discuss the function of conditional operator, size of operator and comma operator with examples.
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
What is an identifier?
What is the acronym for ansi?
List the difference between a "copy constructor" and a "assignment operator"?
Are bit fields portable?
can anyone suggest some site name..where i can get some good data structure puzzles???
If I have a char * variable pointing to the name of a function ..
What does it mean when the linker says that _end is undefined?
What is pointer & why it is used?
What is use of integral promotions in c?
What is "Duff's Device"?
hi send me sample aptitude papers of cts?
Can we assign string to char pointer?