1. Home
  2. questions

Filters

Found 2 Questions

Set Default

List of practice Questions

Consider the following 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) is \(\underline{\hspace{2cm}}\).

  • GATE CS - 2021
  • GATE CS
  • Programming and Data Structures
  • Recursion

Consider the following ANSI C program.

 

The output of the program upon execution is \(\underline{\hspace{2cm}}\).

  • GATE CS - 2021
  • GATE CS
  • Programming and Data Structures
  • Recursion
contact us
terms & conditions
Privacy & Policy
© 2026 Patronum Web Private Limited