Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int y = 2;
    int z = y +(y = 10);
    printf("%d\n", z);
}

A. 12

B. 20

C. 4

D. Either 12 or 20

Answer: Option B


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals