Examveda
Examveda

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

A. 0

B. 1

C. 2

D. No Output

Answer: Option C


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals