Skip to content
Related Articles

Related Articles

C | Storage Classes and Type Qualifiers | Question 19
  • Difficulty Level : Medium
  • Last Updated : 06 Mar, 2013
GeeksforGeeks - Summer Carnival Banner




#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

Want to learn from the best curated videos and practice problems, check out the C Foundation Course for Basic to Advanced C.
My Personal Notes arrow_drop_up
Recommended Articles
Page :