Examveda

Comment on the output of the following C code.
#include <stdio.h>
int main()
{
    int i, n, a = 4;
    scanf("%d", &n);
    for (i = 0; i < n; i++)
        a = a * 2;
}

A. Logical Shift left

B. No output

C. Arithmetic Shift right

D. Bitwise exclusive OR

Answer: Option B


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals