Examveda
Examveda

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

A. a = 1, b = 1

B. a = 2, b = 1

C. a = 1, b = 2

D. a = 2, b = 2

Answer: Option B


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals