Q.What will be the output of the following code segment, if the function is called as larger (10, 20)? int larger (int x, int y) { int max = x; if (max < y) { max = y; } else return A; print ("Larger of %d and %d is %d", x, y, max); }
Correct answer: Program will not compile as no statement is allowed after return statement.