is it possible that a function have more than one return statement (true/fasle)
Answers
Answered by
8
Answer:
True, A function may have any number of return statements each returning different values and each return statements will not occur successively.
Explanation:
I give you answer now it is your duty to mark me as a brianliest please follow me on brainly thanks my 10 answers
Answered by
1
Answer:
even if you enter many return statements in a program, it will evaluate only one. so answer can be false also and true also from both the extremes.
to say in a nutshell , a function can have many return statements but if any one of them evaluates, the function terminates.
hope it helps
regards
Similar questions
Computer Science,
3 months ago
Science,
3 months ago
Math,
3 months ago
English,
7 months ago
Chemistry,
7 months ago
Science,
11 months ago
Computer Science,
11 months ago
English,
11 months ago