+ 2
Can I use getch() instead of return 0
3 Answers
+ 4
yes! and you can remove return 0 out
+ 3
Well how can you replace return 0 by getch().
In any function if something is to be returned you must then return something return 0,return 1,return 8837 anything but how can you use getch().
If the main type is void if supported by your compiler we write getch() at end so that the program exist only after user wants there we can remove the getch() statement without any error.
If I am wrong please tell me. My exams are very near so clarify my concept if I am wrong.
+ 1
I am a beginner