Single Choice Not Set

QWhat is the output of this C code?

#include<stdio.h> 
int main()
 {
        int x = 2, y = 1;
        x *= x + y;
        printf("%d\n", x);
        return 0;
 }

ID: #1202 Operators and Enums in C Language 981 views
Question Info
#1202Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 5
  • B 6
  • C Undefined behaviour
  • D Compile time error
Correct Answer

Explanation

6

Share This Question

Challenge a friend or share with your study group.