Question icon
Grade 11Electromagnetic Induction

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

Profile image of Nitin Gupta
15 Years agoGrade 11
Answers icon

1 Answer

Profile image of suryakanth AskiitiansExpert-IITB
ApprovedApproved Tutor Answer15 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