Vidyalelo
C Programming · Q224

C Fundamentals

Programming · C Programming · question 224

Q224

Comment on the output of the following C code. #include 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
Answer
C.
Arithmetic Shift right
D.
Bitwise exclusive OR

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board