The return type is used when you want your function to be an RVAL.
In this code:
The 10 is an RVAL (the value is to the right of the = operator). data is the LVAL.
If the 10 need to be calculated, then you can use a function that returns an int:
The compiler will call the function to get the int to assign to data. Calculate() is now an RVAL.