Home › Previous year questions › GATE 2008 CS › Question 18GATE 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);x=3, y=4, z=2 x=6, y=5, z=3 x=6, y=3, z=5 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 GATE 2008 CS Q60 – What is printed by this C program? GATE 2008 CS Q84 – The following erroneous C program attempts binary search in Y[10]: On which input does it… GATE 2008 CS Q85 – The following erroneous C program attempts binary search in Y[10]: Which correction makes… GATE 2026 CS (CS1) Q34 – Consider the following program in C: The output of the program is . (answer in integer) GATE 2026 CS (CS2) Q17 – In the C runtime environment, which one of the following is stored in the heap? GATE 2026 CS (CS2) Q19 – Consider the following three ANSI C programs, P1, P2, and P3. Which one of the following… All Programming in C questions →