In parentheses, the return statement tells the compiler that you intend to return this value to the stack instead of memory.
In the old days, this was strictly observed (usually), but today most compilers take this as a hint.
This is what I often do, since an error can ruin anything returned via a memory reference, but usually does not affect the return variable on the stack.
Using a stack for transient variables also reduces memory usage and usually makes the call / return function faster, because that's what the stack is for, temporary data / variables.
Diogenes Mar 26 '16 at 6:33 2016-03-26 06:33
source share