what is reason foe returning any value in the int main()? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is reason foe returning any value in the int main()?

please explain me simply

20th Jul 2017, 4:54 PM
Sonani Meet
Sonani Meet - avatar
1 Answer
+ 2
in machine dependant languages like c and c++ execution of your code is managed by operating systems return value of main function is used to indicate successful or unsuccessful execution of your code.
20th Jul 2017, 5:30 PM
Hardik Raut
Hardik Raut - avatar