What is a Return Statement?
A return statement ends the function it is used in and presents what you state as the output of that function.
Example:
int addition (int a, int b) // a function that takes two inputs
{
int r;
r=a+b; // processes the input
return r; // this is what the functions outputs whilst at the same time ends the function operation
}
2 Likes