+ 1

What us the use of 'return 0' in the code of hello world

18th Aug 2017, 4:56 PM
Aditya Vetale
2 Réponses
+ 2
The main function has return type int, returning 0 means the program terminated successfully, or as expected. A non-zero return type is usually used when the program terminated with an error
18th Aug 2017, 5:43 PM
Ralph Landon
Ralph Landon - avatar
0
thanks
19th Aug 2017, 3:37 AM
Aditya Vetale