QuesHub > 在线 > 测试 > 字符 > ASK DETAIL

Why do we use getch in C programming?

Jackson Taylor | 2023-05-05 14:09:53 | page views:1060
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Julian Torres

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

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.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4