0

ŠÆ Š½Šµ ŠæŠ¾Š½ŃŠ» Š§Ń‚Š¾ тŠ°ŠŗŠ¾Šµ return 0

16th Dec 2017, 10:15 AM
erjan
erjan - avatar
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
17th Dec 2017, 5:42 AM
Koketso Dithipe
Koketso Dithipe - avatar
0
I do not understand
16th Dec 2017, 12:39 PM
erjan
erjan - avatar