Vidyalelo
C Programming · Q185

C Fundamentals

Programming · C Programming · question 185

Q185

What will be the output of the following C code? #include int main() int a = 10, b = 10; if (a = 5) b--; printf("%d, %d", a, b--);

A.
a = 10, b = 9
B.
a = 10, b = 8
C.
a = 5, b = 9
Answer
D.
a = 5, b = 8

Answer: Option C

Solution

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