search
Log In

Recent questions tagged extern-variable

0 votes
1 answer
1
2 votes
2 answers
3
extern int i; int i = 10; i = 5; int main() { printf("%d", i); return 0; } The output for the above code is _______
asked Jan 16, 2018 in Algorithms targate2018 400 views
2 votes
1 answer
4
#include <stdio.h> int main() { int a=10; extern int a; return 0; } Why this gives compilation error? Extern is just a declaration.So why it is giving error on compilation?
asked Nov 23, 2017 in Programming rahul sharma 5 202 views
3 votes
1 answer
5
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
To see more, click for the full list of questions or popular tags.
...