+ 2
return0 is it nessary
6 Answers
+ 1
if u don't want to return anything then u can put 0
it's best to use void if u don't want anything to return
+ 1
Yes, it is nessary if data type of our func. is anything except void .
0
Already I use void no return
0
yep if u don't want anything then put return 0
0
OK thanks
0
No, it ain't necessary depends upon the return type.
As when we write int main (), main function must return an integer value so we write return 0; since there is nothing to return
While we can avoid using it simply by giving return type void as: void main()