You are not logged in.

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

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
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


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-14 05:39:23

Advertisement
Ads By Google

Re: C Language Operators And Expressions Statements:



Board footer