0

Can the c++ program can run successfully without using [return 0]?

sometimes it workes and sometimes it doesn't

7th Jun 2018, 6:09 PM
NIKHIL KUMAR
NIKHIL KUMAR - avatar
3 Answers
+ 1
Non void functions should return the value.
7th Jun 2018, 6:33 PM
Vijay
Vijay - avatar
+ 1
Not writing return will not cause any problem
8th Jun 2018, 8:16 AM
Shahil Ahmed
Shahil Ahmed - avatar
0
Instead of writing return 0 you can also write EXIT_SUCCESS;
7th Jun 2018, 9:19 PM
Dejan FrancuzđŸ„‡
Dejan FrancuzđŸ„‡ - avatar