Vidyalelo
C Programming · Q105

C Fundamentals

Programming · C Programming · question 105

Q105

What will be the output of the following C code? #include void main() int a = 5, b = -7, c = 0, d; d = ++a && ++b || ++c; printf(" %d%d%d%d", a, b, c, d);

A.
6 -6 0 0
B.
6 -5 0 1
C.
-6 -6 0 1
D.
6 -6 0 1
Answer

Answer: Option D

Solution

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