+ 2

Return 0; terminates the main. If I write return 200; to terminate the main. The program is still working. Is return constant.

2nd Mar 2017, 7:55 AM
Scooby Doo
Scooby Doo - avatar
2 Respuestas
+ 11
What you return to the operating system doesn't really matter towards the program flow. Return 0 basically signals the OS that the program has executed and ended successfully. Returning other values signal that the program ended abnormally.
2nd Mar 2017, 8:30 AM
Hatsy Rei
Hatsy Rei - avatar
0
thanks
2nd Mar 2017, 9:02 AM
Scooby Doo
Scooby Doo - avatar