what is function of getch | Sololearn: Learn to code for FREE!


what is function of getch

4/30/2017 4:09:58 AM


5 Answers

New Answer


getch() is a nonstandard function and is present in conio.h header file which is mostly used by MS-DOS compilers like Turbo C. It is not part of the C standard library or ISO C, nor is it defined by POSIX (Source: http://en.wikipedia.org/wiki/Conio.h) It reads a single character from keyboard. But it does not use any buffer, so the entered character is immediately returned without waiting for the enter key.


you can insert the code so that we can help use insert option just below your comment


getch is a function it is included in header file conio.h


did you mean what does it do ? oh it depends where you are using it Sometimes it is used to program execution or else it is used to input a charecter


what can I do when my program ask me to input some number