+ 1

What is getch(); ? And use of getch(); function.

Can anyone explain it....

4th Oct 2020, 6:14 AM
Dipika😊
Dipika😊 - avatar
1 Réponse
+ 7
getch() is a nonstandard function and is present in conio.h header file which is mostly used by MS-DOS compilers like Turbo C. This function waits for any character input from keyboard. But, it won’t echo the input character on to the output screen #include <stdio.h> #include<conio.h> int main() { printf("hello"); getch(); printf("World"); getch(); printf("Yuuh"); getch(); return 0; } try this program it wont be work on solo first . it will print hello then screen will pause and it wait for one character when u press then next statement World will print then screen pause and wait for one char then yuuh https://www.google.com/amp/s/www.youth4work.com/Talent/c-language/Forum/113752-what-is-the-purpose-of-getch-function-in-c%3famp=true .........Thankyou.........
4th Oct 2020, 7:19 AM
A S Raghuvanshi
A S Raghuvanshi - avatar