+ 1

Elaborate the difference between getch(); and return 0; .....????

question to all...

17th Dec 2016, 5:32 PM
Taneem Jan
Taneem Jan - avatar
2 Réponses
+ 3
for your kind information you should not use getch() in c++ , Some old c program still uses getch(), when output pops up on terminal then it waits keyboard input to terminate the program the key may be Enter key. every int main () returns value to operating system .. if u define return 0 ; it defines program successfully completed . Hope your clear
17th Dec 2016, 5:44 PM
Mock
Mock - avatar
+ 1
Thank you so much buddy... Mock
28th Dec 2016, 5:27 PM
Taneem Jan
Taneem Jan - avatar