Why do we use <Conio.h> in c programming? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Why do we use <Conio.h> in c programming?

Why do we use #include <conio.h> and getch() ; in some of the programs written using C programming language? How does it affect the Output ?

28th Aug 2019, 6:11 PM
Prince
Prince - avatar
15 Answers
+ 4
Full form of getch is get character.So,what it does is on pressing any key (which takes a character in a way)shows the output.And its function is understood to hold the output screen... #include<conio.h> It is a header file used in c and cpp and it includes inbuilt functions like getch() and clrscr().It stand for console input ouput i.e. it takes input from keyboard and displays it on screen.
31st Aug 2019, 10:44 AM
Programmer
+ 7
Common in built function like getch() clrscr() stored in <conio.h> header files. to use this function we are including <conio.h> header file and the getch() function is used to hold the output screen for a while in the sense till any key is pressed.
29th Aug 2019, 12:22 PM
Ayushi Gujarati
Ayushi Gujarati - avatar
+ 5
To continue the window screen after taking input from the user during execution time
31st Aug 2019, 7:49 AM
Sahil
Sahil - avatar
+ 3
Andromed Yep I do know .. <math.h>
30th Aug 2019, 1:29 AM
Prince
Prince - avatar
+ 3
Andromeda What?
1st Sep 2019, 2:24 AM
Sahil
Sahil - avatar
+ 2
Include command helps you to import functions from libraries, so you can add desired features to your code. Importing/Including libraries never affect your code, just adds new functions you can use. At this case, the library Conio.h imports functions like getch() and a lot of other functions you can use.
28th Aug 2019, 6:23 PM
Itzhak Avraham
Itzhak Avraham - avatar
+ 2
<conio.h> it stands for console input output and .h represent that it is a header file It is used to store the in built functions
30th Aug 2019, 10:08 AM
Kuldeep
Kuldeep - avatar
+ 2
Good
1st Sep 2019, 3:50 AM
Sahil
Sahil - avatar
+ 1
It's denotes that"console input output" pre-defined header file. It store bulidin function like getch() ,clrscr(),etc., . It is based on console (display)function.. For more query [email protected]
30th Aug 2019, 1:27 PM
Sriramselvakumar S
Sriramselvakumar S - avatar
0
Did you know about math
30th Aug 2019, 1:13 AM
Andromeda
0
We use conio.h header file for clrscr() and getch()
30th Aug 2019, 11:37 AM
HAWK
HAWK - avatar
- 1
What math
30th Aug 2019, 1:32 AM
Andromeda
- 1
What are you doing
31st Aug 2019, 11:34 PM
Andromeda
- 1
Doing at my phones
1st Sep 2019, 3:07 AM
Andromeda