what is function of getch | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 1

what is function of getch

30th Apr 2017, 4:09 AM
akshay
5 Respostas
+ 8
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.
30th Apr 2017, 4:47 AM
kiruthika .s
kiruthika .s - avatar
+ 2
you can insert the code so that we can help use insert option just below your comment
30th Apr 2017, 5:00 AM
Mayank Srivastava
Mayank Srivastava - avatar
+ 1
getch is a function it is included in header file conio.h
30th Apr 2017, 4:12 AM
Mayank Srivastava
Mayank Srivastava - avatar
+ 1
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
30th Apr 2017, 4:15 AM
Mayank Srivastava
Mayank Srivastava - avatar
- 1
what can I do when my program ask me to input some number
30th Apr 2017, 4:55 AM
akshay