0

What is return 0 ?

18th Jul 2016, 11:33 PM
Spirea Andrei
Spirea Andrei - avatar
4 Answers
+ 1
Assuming you mean return 0 from the main, return 0 is just a way that the main knows when to end a program. If a return 0 is initiated from the main, then the program will stop.
19th Jul 2016, 12:02 AM
Cohen Creber
Cohen Creber - avatar
+ 1
In my Opinion return 0. simply tells the compiler that the program has run successful without any errors.
19th Jul 2016, 4:09 AM
Issah Mudasir
Issah Mudasir - avatar
+ 1
Return 0; shows the end of program and it tells the compiler the program has written succesfuly
19th Jul 2016, 7:04 AM
Fardad Fateh
- 2
Would return SUCCESS make more sense?
19th Jul 2016, 7:44 AM
_Geometry dash_ _Roh_ (AKA NovaRate0315)
_Geometry dash_ _Roh_ (AKA NovaRate0315) - avatar