Guys what is " return 0; " Mean in coding language specificaly C++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Guys what is " return 0; " Mean in coding language specificaly C++?

Newbie

27th Sep 2020, 7:35 AM
Linus Tech Tips Fans
Linus Tech Tips Fans - avatar
1 Answer
+ 2
Return keyword used to return some value to calling function. Main function returns value to calling function (Operating system in this case). 0 means no problems occurred during execution. And return some other values in case of errors. errors codes are used to identify errors
27th Sep 2020, 8:43 AM
Azhagesanヾ(✿)
Azhagesanヾ(✿) - avatar