Live quiz

C Programming - Part 16

Question 1 of 25 Hints left: 3
Q1

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
  • B
  • C
  • D