0
ŠÆ Š½Šµ ŠæŠ¾Š½ŃŠ» Š§ŃŠ¾ ŃŠ°ŠŗŠ¾Šµ return 0
2 Answers
+ 6
"devvit (2) Technically, in C or C++ main function has toĀ returnĀ a value because it is declared as "int main" which means "main function shouldĀ returninteger data type" if main is declared like "void main", then there's no need ofreturn 0."
http://www.cplusplus.com/forum/beginner/24461/
"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".
https://www.codeproject.com/Questions/693038/why-do-we-have-to-use-return
https://stackoverflow.com/questions/14928520/so-what-does-return-0-actually-mean
0
I do not understand