Asked in C Programming
C Programming

Why you use getch function in c language?

272829

Answer

User Avatar
Wiki User
02/15/2012

getch() takes one char from keyboard but it will be invisible to us. in other words we can say that it waits until press any key from keyboard.

getch() is a function which has its protype defined in conio.h header file.

it is basically used to take input a single characterfrom keyboard. and this char is not displayed at the screen.

it waits until itn gets a input that's why it can be used as a screen stopper.