If you don't include the return 0;statement does that mean it won't run | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If you don't include the return 0;statement does that mean it won't run

30th Sep 2018, 2:05 PM
Ismail Sulaiman
3 Answers
+ 4
The return statement is used only if the function have the return type, in case if void or for main() function, there is no return statement required. hope this is helpful..😇
30th Sep 2018, 3:28 PM
Random
Random - avatar
0
which language?
30th Sep 2018, 2:25 PM
Amir Galanty
Amir Galanty - avatar
0
c++
30th Sep 2018, 2:26 PM
Ismail Sulaiman