0
What is this return 0? statement?
8 Respuestas
+ 5
if you are talking about "int main()" function?
we write "return 0;" as the return data type of the main function is "int",
Had it been void,we won't need to write return 0.
+ 4
it is terminating statement which mean operation complete
+ 2
return 0 is meaning this function completed
+ 2
it is like (the end) quote after a movie ,it means the end of function
0
simply, it's implies that the function value is satisfied totally and successfully.
0
it is used to terminate the main function
0
terminating statement which means operation completed.
0
Is "void" a valid return type for a Main()?
Ex:
static void Main{
//stuff
}