0
do we write getch() at the end of a program? is it okay or not?
1 Réponse
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