1.

In the following C function, let n >= m.int gcd(n,m){if (n%m ==0) return m;n = n%m;return gcd(m, n);}How many recursive calls are made by this function?(A) (logn)(B) (n)(C) (loglogn)(D) (sqrt(n))(A) A(B) B(C) C(D) D

Answer»


Discussion

No Comment Found

Related InterviewSolutions