MCQ Single Best Answer Not Set

QWhat will be the output of the program?

#include<stdio.h>

int main()
{
    printf("%d %d\n", 32<<1, 32<<0);
    printf("%d %d\n", 32<<-1, 32<<-0);
    printf("%d %d\n", 32>>1, 32>>0);
    printf("%d %d\n", 32>>-1, 32>>-0);
    return 0;
}

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

Choose the Best Option

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

  • A Garbage values
  • B 64 32
    0 32
    16 32
    0 32
  • C All zeros
  • D 8 0
    0 0
    32 0
    0 16
Correct Answer: Option B

Explanation

Option B

Share This Question

Challenge a friend or share with your study group.