

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following recursive function.Int function (int x, int y) { If (y <= 0) return x; return function (y, x%y); }The above recursive function computes ______. |
A. | yx |
B. | GCD of x and y |
C. | xy |
D. | LCM of x and y |
Answer» C. xy | |