+ 1
What is return0
what That does
3 Respostas
+ 21
It ensures that there is no return value to be given in the function.
If you type return 2 in some function foo() then it will return 2 to main function.
Similarly return 0 returns nothing to main function.
+ 1
ok thx:)
+ 1
0 is the default return value for C++ programs in that case no error occurred. returning other value means error. different return values could mean different errors depending on the program.