GATEverse
← GATE CSE 2007

Q44

MCQ2 marks, −0.5

In the following C function, let n≥mn \geq 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?

Sign in to save attempts.

Loading…