What is the purpose of return 0? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the purpose of return 0?

6th Feb 2018, 12:03 PM
Karthi Deepak
Karthi Deepak - avatar
2 Answers
+ 7
return 0 means that your program execute is sucessfull, in other case it will be returned some negative value, often -1
6th Feb 2018, 12:13 PM
Vukan
Vukan - avatar