0
What does return actually mean? What does it give the user?
5 odpowiedzi
0
what the function return to the user.
example:
int sum ()
int x=5;
int y=6;
{
int sum=x+y;
return sum;
}
the function return the interger call sum. correct me if i wrote something wrong (sorry for my english)
0
@Marco Medri but if u write return 0 ,it will still work,why?
0
@Karanveer Singh I think return 0 at the end is just states that the program ran successful. If it doesn't it will return a 1 instead
0
@ethan no , 0 is the main function dude if u have 2 functions and u type return 1 you will return to f 2
0
@Enescu Catalin well that's what I can digest