Quote:
Originally Posted by Exolent[jNr]
That's not what I said.
I said that you can have multiple return statements, but only 1 return value, because obviously the function stops when a value is returned.
To have more than one, you need separate blocks of code made by if(), while(), etc.
|
So only one return operation is executed just like in the other example. This does not affect the efficiency, but the size of code.
__________________