Why do we use getch in C programming?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at Cisco, Lives in San Jose, CA
Well as you know, getch() reads a single byte character from input. ... It can be used to hold program execution, but the "holding" is simply a side-effect of its primary purpose, which is to wait until the user enters a character. getch() and getchar() are used to read a character from screen.
2023-05-12 14:09:53
评论(499)
Helpful(122)
Helpful
Helpful(2)

Carter Kim
QuesHub.com delivers expert answers and knowledge to you.
Well as you know, getch() reads a single byte character from input. ... It can be used to hold program execution, but the "holding" is simply a side-effect of its primary purpose, which is to wait until the user enters a character. getch() and getchar() are used to read a character from screen.