Examveda
Examveda

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

A. 5

B. 6

C. Undefined behaviour

D. Compile time error

Answer: Option B


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals