+ 2
What exactly is a return value?
3 RĂ©ponses
+ 1
Could you please explain a bit clearer
0
Something returned from functions. For example, define a function:
int a_function()
{
return 42;
}
Then,
int number = a_function();
number will be 42 because a_function() returns 42.
0
A function can return a value, the type of value it returns depends on the function.
The return value can be used anywhere outside of the function.