What will be the output of the following C code?
#include <stdio.h>
int main()
{
int a = 1, b = 1, c;
c = a++ + b;
printf("%d, %d", a, b);
}
#include <stdio.h>
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
C. a = 1, b = 2
D. a = 2, b = 2
Answer: Option B
Join The Discussion