Examveda

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);
}

A. Value of x is 12

B. Value of x is 13

C. Value of x is 10

D. Undefined behaviour

Answer: Option D


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals