extern int var; int main(void) { var = 10; // why it is not considered as definition in prog return 0; } Why this is creating error saying (var is not defined).But as per rule -"by externing a variable we can use the variables anywhere in the program provided we know the declaration of them and the variable is defined somewhere."?
asked
Jun 11, 2017
in Programming
Shubhanshu
1.8k views