Consider the following method g.
int g (int a) {
if (a < 9) {
return 9;
}
if (a < 7) {
return 7;
}
if (a < 4) {
What is the value returned from the call
g(5)?
Answers
Answered by
4
Answer:
9 is the answer
Explanation:
Because when the return statement is executed in the function the program leaves the function it will not proceed the following statements after the return
Similar questions