- 2

What is the difference between gets() and getch()

14th Apr 2022, 3:02 PM
Jeya Sudha G V
2 ответов
+ 4
Put the language as tag.. Or as details.. gets() accepts a line of string.. getch() accept just single character.. Both are included in conio.h which is non-standard deprecsted library. Prefered to use, fgets() instead of gets() and getchar() instead of getch().. Hope it helps.. edit: @Simon means use search bar...
14th Apr 2022, 3:37 PM
Jayakrishna 🇮🇳
+ 3
For one you enter "gets()" into a search engine, for the other "getch()".
14th Apr 2022, 3:07 PM
Simon Sauter
Simon Sauter - avatar