0

please someone explain me the difference b/w using "return 0" and "getch()"?

3rd Jul 2016, 10:18 AM
Shubham Sharma
Shubham Sharma - avatar
2 Réponses
0
both perform the same function but a different way to write it. Standard books generally uses return type instead of getch and it is better to use return as later on in complex problem using return is easier.
9th Jul 2016, 6:01 PM
imnoob
imnoob - avatar
0
getch() is used to make sure when program output something the console will stay while return is used to tell computer either program run successful or not
10th Jul 2016, 4:51 PM
Sunusi Muhammad Raji
Sunusi Muhammad Raji - avatar