+ 2

What exactly is a return value?

20th Oct 2020, 10:50 AM
Bharadwaaja Kanakadandi
Bharadwaaja Kanakadandi - avatar
3 Antworten
+ 1
Could you please explain a bit clearer
20th Oct 2020, 10:58 AM
Bharadwaaja Kanakadandi
Bharadwaaja Kanakadandi - avatar
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.
20th Oct 2020, 10:55 AM
你知道規則,我也是
你知道規則,我也是 - avatar
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.
20th Oct 2020, 11:27 AM
你知道規則,我也是
你知道規則,我也是 - avatar