What will be the output of the following C code?
#include <stdio.h>
void main()
{
int a = 3;
int b = ++a + a++ + --a;
printf("Value of b is %d", b);
}
#include <stdio.h>
void main()
{
int a = 3;
int b = ++a + a++ + --a;
printf("Value of b is %d", b);
}A. Value of x is 12
B. Value of x is 13
C. Value of x is 10
D. Undefined behaviour
Answer: Option D

Join The Discussion