Can There Be Multiple Return Statements Within A Function?

Category: QuestionsCan There Be Multiple Return Statements Within A Function?
Editor">Editor Staff asked 2 years ago

Can There Be Multiple Return Statements Within A Function?

1 Answers
Editor">Editor Staff answered 2 years ago

Yes, there can be multiple RETURN statements within a function though only one is executed. After the value is retuned, the control passes back to the calling environment and function processing is stopped.