With what do you replace the ???? to make the function shown above return the correct answer?
A. if (x == 0) return 0;
B. return 1;
C. if (x >= 2) return 2;
D. if (x <= 1) return 1;
Answer:D
With what do you replace the ???? to make the function shown above return the correct answer?
A. if (x == 0) return 0; B. return 1; C. if (x >= 2) return 2; D. if (x <= 1) return 1;