Vidyalelo
C Programming · Q213

C Fundamentals

Programming · C Programming · question 213

Q213

What will be the final value of c in the following C code snippet? (Initial values: a = 1, b = 2, c = 1) c += (-c) ? a : b;

A.
Syntax Error
B.
c = 1
C.
c = 2
Answer
D.
c = 3

Answer: Option C

Solution

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