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.
2 odpowiedzi
+ 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.
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.