Open In App

C | Storage Classes and Type Qualifiers | Question 19




#include <stdio.h>
int main()
{
  extern int i;
  printf("%d ", i);
  {
       int i = 10;
       printf("%d ", i);
  }
}

(A) 0 10
(B) Compiler Error
(C) 0 0
(D) 10 10

Answer: (B)
Explanation: See extern keyword
Quiz of this Question

Article Tags :