Computer Science, asked by mayanksaha9125, 4 months ago

If several return statements are used then how many of them can be executed at a time ?

Answers

Answered by Rohinisingh05
2

Answer:

Only one return statement gets executed. If you write more than one return statements and the compiler comes across two return statements consecutively then the compiler may give you an error while compiling. But this doesn't mean you can not use more than one return statements, you may do so but setting appropriate conditions using conditional statements is required,

Similar questions