Why we use " return 0; "in c program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why we use " return 0; "in c program?

Tell me anyone...pls

25th Dec 2018, 6:24 AM
KARTHIK TELU
KARTHIK TELU - avatar
2 Answers
+ 5
25th Dec 2018, 6:30 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 2
It indicates that the program ended successfully, i case something where to go wrong(exceptions) then you could return other values i.e (return 1;)
25th Dec 2018, 6:52 AM
Mensch
Mensch - avatar