Quote:
Originally Posted by issen1
Sounds like bullshit to me. You can't have several return statements in a function call (actually you can, in assembler, but this doesn't matter here).
|
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.
Quote:
Originally Posted by issen1
Any example? How will the flow of code be changed without the necessary jumps?
|
I'm not the expert on this, so no, no example.
I'm only repeating what I read and it was backed up with examples.
__________________