If several return statements are used then how many of them can be executed at a time ?
Answers
Answered by
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
English,
2 months ago
Math,
2 months ago
Science,
2 months ago
Environmental Sciences,
10 months ago
English,
10 months ago