BETA

Fresher

Submission : 95 Views : 992

Guess the correct one !

What is the output of the following Question ?

int Find (int x, int x, int x)
{
    if ((x >= y) && (z < y) return y;
    else if (x >= y) return Find (x, z, y);
    else return Find (y, x, z);
}
  • Finds the maximum of x, y and z
  • Finds the minimum of x, y and z

  • Finds the second largest of x, y, z

  • All of the above 
  • None of the above 

Login to Post Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer