Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int a = 10, b = 10;
    if (a = 5)
    b--;
    printf("%d, %d", a, b--);
}

A. a = 10, b = 9

B. a = 10, b = 8

C. a = 5, b = 9

D. a = 5, b = 8

Answer: Option C


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals