GATEverse
← GATE CSE 2021 Set 2

Q23

NAT1 mark

Consider the following ANSI C\text{ANSI C} function: int SomeFunction (int x, int y) { if ((x==1) || (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)\textrm{SomeFunction(15, 255)} is __________

Sign in to save attempts.

Loading…