Vidyalelo
C Programming · Q271

C Fundamentals

Programming · C Programming · question 271

Q271

The following C code can be rewritten as . . . . . . . . c = (n) ? a : b;

A.
if (!n)c = b;
else c = a;
Answer
B.
if (n <;= 0)c = b;
else c = a;
C.
if (n > 0)c = a;
else c = b;
D.
All of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board