In Turbo C, while mentioning return 0 it never shows the output but mentioning getch it always shows output of any program. Why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

In Turbo C, while mentioning return 0 it never shows the output but mentioning getch it always shows output of any program. Why?

About return 0 and getch

21st May 2020, 4:22 AM
Lavanya Shinde
2 Answers
+ 2
getch() is predefined function in c programming it holds the output screen for user input and realted out put Turbo C in now outdated compiler so please don't continue with it You should use Dev CPP it's best and you will not need to write getch() here.
21st May 2020, 4:46 AM
Mohd Aadil
Mohd Aadil - avatar
+ 2
Thank u for the answers👍
21st May 2020, 2:00 PM
Lavanya Shinde