Can we see output in c without getch() ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can we see output in c without getch() ?

9th Oct 2019, 3:47 PM
Gaurav Jakhar
Gaurav Jakhar - avatar
5 Answers
+ 2
In some old compillars getch() function is used to stop compilar to exit the console(output screen) Without getch() also output is generated In new IDEs including SOLOLEARN code playground there is no need for this function
9th Oct 2019, 4:07 PM
Arsenic
Arsenic - avatar
+ 1
getch() does not give any output.
9th Oct 2019, 3:50 PM
haydenki
haydenki - avatar
+ 1
Yes, getch() use in turbo C but in codeblock and other compiler editor you write the code without using getch() .
9th Oct 2019, 4:06 PM
Prathvi
Prathvi - avatar
0
How without getch() use we can see output in turbo compiler? Arsenic
9th Oct 2019, 4:11 PM
Gaurav Jakhar
Gaurav Jakhar - avatar
0
If any loop run infinite, in this condition we can exit console with the help of getch(). Arsenic
9th Oct 2019, 4:13 PM
Gaurav Jakhar
Gaurav Jakhar - avatar