0

do we write getch() at the end of a program? is it okay or not?

28th Jul 2016, 4:37 PM
Urvi
1 Answer
0
you don't have to. it's used on some console applications to stop the program from immediately closing. personally I prefer to use cin since that eliminates having to use conio.h which isn't supported everywhere. but nonetheless no, not required. use getch () or similar functions when you want to read console output before exiting
28th Jul 2016, 8:06 PM
destro