0

Return 0; in other languages other than cpp?

what is the difference of return 0; compared to other programming language?

18th Jan 2018, 2:58 AM
Niyaz Murshid
Niyaz Murshid - avatar
1 Odpowiedź
+ 2
In C and C++ programs the main function is of type int and therefore it should return an integer value. The return value of the main function is considered the "Exit Status" of the application. On most operating systems returning 0 is a success status like saying "The program worked fine." Ref: CodeProject Hope this helps! 👍
18th Jan 2018, 3:51 AM
Dread
Dread - avatar