0

It is necessary to put return 0 in void main or in any other function if you don't need to return anything?

Return function

25th Nov 2016, 12:22 PM
Manolache Gabriel Ionuț
Manolache Gabriel Ionuț  - avatar
3 Antworten
+ 2
return 0 is if it's not void if void then no return and in javascript there is no data type of function
25th Nov 2016, 5:53 PM
Sandeep Chatterjee
+ 1
yes if the return type is other than void
25th Nov 2016, 12:41 PM
Raghav Prakash Agarwal
Raghav Prakash Agarwal - avatar