Recent questions tagged extern-variable

1 votes
2 answers
1
#include <stdio.h int i =20; int main() { int i = 10; extern int i; printf("%d",i); }Why does this program give Compiler error??please explain
0 votes
1 answer
2
2 votes
2 answers
4
extern int i; int i = 10; i = 5; int main() { printf("%d", i); return 0; }The output for the above code is _______
2 votes
1 answer
5
#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 c...
To see more, click for the full list of questions or popular tags.