C | Storage Classes and Type Qualifiers | Question 19

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


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


Answer: (B)

Explanation: See extern keyword

Quiz of this Question

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up