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 thebelow code? |
| A. | arr[len] = n |
| B. | arr[len] = n % 2 |
| C. | arr[len++] = n % 2 |
| D. | arr[len++] = n |
| Answer» D. arr[len++] = n | |