If we use returnable data type for declaring main .... where does it returns the value? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If we use returnable data type for declaring main .... where does it returns the value?

hi all.....as we all know that that when we create any return type function, it returns the value to the function from which it was called to any particular variable .....but where does main returns its variable if we use data type other than void for creating main function?

27th Apr 2018, 5:21 AM
Jason
2 Answers
0
return some_variable; = stores the value value of the variable or function output. The function itself acts as a variable. (As far as i like to think so)
27th Apr 2018, 6:00 AM
Akib
Akib - avatar
0
The main function returns the exit code to the operating system.
27th Apr 2018, 7:43 AM
johan beimers
johan beimers - avatar