getch() in C by R4R Team

- getch() function is also a console function that is define in conio.h Heador file.
-It hold the screen upto any character to be push.

Syntax-
getch();


program-

#include< stdio.h>
#include
int main()
{
printf("First statement");
getch();
printf("Second Statement");
}


output-

First statement
Second Statement

-In this program, we print first statement then hold the screen until the any keyword will press.
-After any press keyword, second statement will execute.




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!