0

How can we get the output screen if we don't put getch(); at the end of the program?

it's happens in basic c language.

1st May 2017, 4:27 PM
Rahul Sharma
Rahul Sharma - avatar
2 ответов
+ 5
If I am not mistaken you might be using Turbo C IDE, it returns back as the program terminates. That's why getch () was used for pausing output windows. Alternatively you can press ALT + 0 (zero) to switch to output window.
1st May 2017, 4:47 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
0
When you make a terminal program (those that use cin and cout), you are expected to run it from terminal. Closing the terminal automatically is an expected behavior if you run it from windows explorer.
1st May 2017, 5:59 PM
Denis Felipe
Denis Felipe - avatar