The GATE Grind

GATE 2008 CS – Question 18

Programming and Data Structures · Programming in C · 1 mark · Multiple choice

Which values make a=4?

a = (x > y) ? ((x > z) ? x : z) : ((y > z) ? y : z);
  1. x=3, y=4, z=2
  2. x=6, y=5, z=3
  3. x=6, y=3, z=5
  4. x=5, y=4, z=5

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (A) x=3, y=4, z=2

Explanation

We are sorry we couldn't write detailed soluition for this, we are working on it!, please consider asking your own AI, its just 2-3 clicks with very minimum effort

More Programming in C questions

All Programming in C questions →