Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged extern-variable
1
votes
2
answers
1
C- programming
#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
#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
Thor-o-s
803
views
Thor-o-s
asked
Aug 24, 2022
Programming in C
programming-in-c
compilation-error
extern-variable
+
–
0
votes
1
answer
2
Extern Variable
Na462
1.5k
views
Na462
asked
Nov 19, 2018
Programming in C
programming-in-c
extern-variable
+
–
1
votes
0
answers
3
doubt extern variable here they initialized it is it valid ?
extern int num = 10; // is it valid ??
extern int num = 10; // is it valid ??
sumit goyal 1
617
views
sumit goyal 1
asked
Jan 19, 2018
Programming in C
programming-in-c
extern-variable
+
–
2
votes
2
answers
4
Algorithm - Extern Variable
extern int i; int i = 10; i = 5; int main() { printf("%d", i); return 0; } The output for the above code is _______
extern int i; int i = 10; i = 5; int main() { printf("%d", i); return 0; }The output for the above code is _______
targate2018
1.5k
views
targate2018
asked
Jan 15, 2018
Programming in C
programming-in-c
extern-variable
output
+
–
2
votes
1
answer
5
[Programming in c] Extern variable
#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?
#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...
rahul sharma 5
1.1k
views
rahul sharma 5
asked
Nov 23, 2017
Programming in C
programming-in-c
extern-variable
+
–
3
votes
1
answer
6
Extern Variable in C
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."?
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 ...
Shubhanshu
2.6k
views
Shubhanshu
asked
Jun 11, 2017
Programming in C
programming-in-c
extern-variable
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register