GATE Computer Science (CS) 2021 Shift 2 Solved Paper

© examsiri.com
Question : 33 of 65
 
Marks: +1, -0
Consider the following ANSI C function:
int SomeFunction (int x, int y)
{
if ( (x == 1) I I (y == 1)) return 1;
if (x == y) return x;
if (x > y) return SomeFunction(x - y, y);
if (y > x) return SomeFunction(x, y - x);
}
The value returned by SomeFunction(15, 255) is _______.
  • Your Answer:
Go to Question: