Guest

In C++ programs we write getch().This function is used to pause the screen or just to display the output?

In C++ programs we write getch().This function is used to pause the screen or just to display the output?

Grade:11

1 Answers

suryakanth AskiitiansExpert-IITB
105 Points
13 years ago

Dear Nitin,

getch() is a function which has its protype defined in conio.h header file.

it is basically used to take input a single characterfrom keyboard. and this char is not displayed at the screen.

it waits untill itn gets a input thats why it can be used as a screen stopper.

So, the function is used to pause the screen

Please feel free to ask your queries here. We are all IITians and here to help you in your IIT JEE preparation.

All the best.

Win exciting gifts by answering the questions on Discussion Forum. So help discuss any query on askiitians forum and become an Elite Expert League askiitian.

Now you score 5+15 POINTS by uploading your Pic and Downloading the Askiitians Toolbar  respectively : Click here to download the toolbar..

 

Askiitians Expert

Suryakanth –IITB

Think You Can Provide A Better Answer ?

ASK QUESTION

Get your questions answered by the expert for free