Consider the following statement in C language:
x=(a>b)?( (a>c)?a:c):(b>c)?b:c;
What will be the value of x if a=3, b= -5, c=2
Options:
A: 2
B: 3
C: -5
D: None of above
Answer: B
x=(a>b)?( (a>c)?a:c):(b>c)?b:c;
What will be the value of x if a=3, b= -5, c=2
Options:
A: 2
B: 3
C: -5
D: None of above
Answer: B
No comments:
Post a Comment