Skip to content
Related Articles

Related Articles

C | Storage Classes and Type Qualifiers | Question 19

Improve Article
Save Article
Like Article
  • Difficulty Level : Medium
  • Last Updated : 28 Jun, 2021




#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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!