+ 1
What is the use of "return 0;" in C?
So what I know is that "return 0;" means the code has been executed successfully, but is it necessary, as the code will run just fine without the return or if the return is of a different integer. https://sololearn.com/compiler-playground/cwa2TrljBbEy/?ref=app
1 Réponse
+ 4
Perhaps some earlier posts will answer your question (or a quick search online)
https://www.sololearn.com/discuss/1803954/?ref=app
https://www.sololearn.com/discuss/1867350/?ref=app
https://www.sololearn.com/discuss/1848384/?ref=app
https://sololearn.com/compiler-playground/W0uW3Wks8UBk/?ref=app