why use kbhit in c?
Function kbhit in C is used to determine if a key has been pressed or not. To use it in a program you should include the header file "conio. h". If a key has been pressed, then it returns a non zero value otherwise it returns zero.