+ 1
What does return 0 means .... return is used for what ??
plez help !
7 Respuestas
+ 3
In your main function, return 0 will end your program prematurely.
+ 3
When you purchase something, you get a receipt acknowledging the deal.
In the same manner, every function returns something or the other(usually)to the main function (or the function in which it is called).
It is like a proof to the calling function that the caked function was executed properly.
+ 2
every functions unless it is void has to return something so we tell the program which variable to return and function itself acts as the returned value. this applies for main function too so we return anything commonly 0 we can make it void too.
+ 2
return 0 returns 0 and return sum returnes the value of sum
+ 1
so what is the difference between 'return 0' and 'return sum' (assuming 'sum' is a variable name)
0
*called
0
it means ur function have some value which is return by return and it is used for int...