You are not logged in.

#1 2015-09-14 05:39:26

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Language Operators And Expressions Statements:

C Programming Quizzes C Language Operators And Expressions

Directions:
What is the output of the following statements?

Question:
int b=15, c=5, d=8, e=8, a;
a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;
printf("%d", a);

Option A):
13
Option B):
12
Option C):
16
Option D):
14

Correct Answer is Option D):
14


Failure is the first step towards seccess.

2015-09-14 05:39:26

Advertisement
Ads By Google

Re: C Language Operators And Expressions Statements:



\n

Board footer