

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following recursive implementation used to convert a decimal number to its binary equivalent: Which of the following lines should be inserted to complete the above code? |
A. | arr[len] = n |
B. | arr[len] = n % 2 |
C. | arr[len++] = n % 2 |
D. | arr[len++] = nView Answer |
Answer» D. arr[len++] = nView Answer | |