MCQ Single Best Answer Not Set

QWhat is the output of this C code?
    int main()
    {
        int a = 2;
        if (a >> 1)
           printf("%d\n", a);
    }

ID: #1229 Operators and Enums in C Language 1,021 views
Question Info
#1229Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

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

  • B 1
  • C 2
  • D No output
Correct Answer: Option C

Explanation

Option C

Share This Question

Challenge a friend or share with your study group.