Last Updated : 14 Feb, 2019

What will be the output of the following program?

#include<stdio.h> 

int main() 
{ 
    int a, b; 

    a = 250; 
    b = 25; 
    
    printf(\"%d\",(((a) > (b)) ? a : b));
} 

(A) 25
(B) 250
(C) No Output
(D) Error


Answer: (B)

Explanation: (((a) > (b)) ? a : b) results in 250 as (a > b)

Quiz of this Question


Share your thoughts in the comments