Single Choice Not Set

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

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

Choose the Best Option

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

  • A 1
  • B -1
  • C 2 ^ 31 - 1 considering int to be 4 bytes
  • D Either (b) or (c)
Correct Answer

Explanation

Option B

Share This Question

Challenge a friend or share with your study group.