Vidyalelo
C Programming · Q207

C Fundamentals

Programming · C Programming · question 207

Q207

What will be the output of the following C code? #include int main() int a = 1, b = 1, c; c = a++ + b; printf("%d, %d", a, b);

A.
a = 1, b = 1
B.
a = 2, b = 1
Answer
C.
a = 1, b = 2
D.
a = 2, b = 2

Answer: Option B

Solution

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