What is the use of retirn 0; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the use of retirn 0;

2nd Oct 2019, 12:06 PM
Phani
Phani - avatar
1 Answer
+ 1
It is to tell the caller of the program (your OS in most cases) that the program ran successfully so that caller can take necessary steps in case of success and error
2nd Oct 2019, 2:33 PM
Saurabh Sharma
Saurabh Sharma - avatar