Why return 0 are used in hello program? Without return 0 program is run. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why return 0 are used in hello program? Without return 0 program is run.

16th Nov 2018, 11:03 PM
Priyanka Gotugade
2 Answers
+ 7
Hello, Welcome to SoloLearn! 😊 Can you specifying your question correctly! Use the search bar! https://www.sololearn.com/post/10362/?ref=app Please, read our guidelines: https://www.sololearn.com/discuss/1316935/?ref=app An useful code for any new user here!;) https://code.sololearn.com/WvG0MJq2dQ6y/
16th Nov 2018, 11:10 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 1
The return is there to signal to the process that is calling main that everithing went well.
16th Nov 2018, 11:19 PM
Ulisses Cruz
Ulisses Cruz - avatar