Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged extern-variable
6
6 votes
2
2 answers
201
201 views
GO Classes DPP | GATE CS | C Programming | Extern
What will happen when the following code is compiled?#include <stdio.h int x = 5; int main() { extern int x; int x = 10; printf("%d", x); return 0; }$\texttt{5}$ $\texttt...
GO Classes
201
views
asked
Jun 12
Programming in C
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-296
programming-in-c
c-programming
goclasses-c-programming-practice-questions
extern-variable
+
–
7
7 votes
2
2 answers
217
217 views
GO Classes DPP | GATE CS | C Programming | Extern with Local Shadowing
What is the output of the following code?#include <stdio.h int x = 10; int main() { int x = 20; { extern int x; printf("%d", x); } return 0; }$\texttt{10}$ $\texttt{20}$ ...
GO Classes
217
views
asked
Jun 11
Programming in C
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-295
programming-in-c
c-programming
goclasses-c-programming-practice-questions
extern-variable
+
–
5
5 votes
3
3 answers
230
230 views
GO Classes DPP | GATE CS | C Programming | Extern & Linker Error
What will happen when the following code is compiled and linked?#include <stdio.h int main() { extern int a; printf("%d", a); return 0; }$\texttt{0}$ Garbage value Compil...
GO Classes
230
views
asked
Jun 10
Programming in C
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-294
programming-in-c
c-programming
goclasses-c-programming-practice-questions
extern-variable
+
–
6
6 votes
2
2 answers
219
219 views
GO Classes DPP | GATE CS | C Programming | Extern Variable Declaration
What is the output of the following code?#include <stdio.h int main() { extern int i; printf("%d", i); return 0; } int i = 100;Garbage value $\texttt{0}$ $\texttt{100}$ C...
GO Classes
219
views
asked
Jun 10
Programming in C
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-294
programming-in-c
c-programming
goclasses-c-programming-practice-questions
extern-variable
+
–
1
1 vote
2
answers
2 answers
1.4k
1.4k views
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
Thor-o-s
1.4k
views
asked
Aug 24, 2022
Programming in C
programming-in-c
compilation-error
extern-variable
+
–
0
0 votes
1
answers
1 answer
2.3k
2.3k views
Extern Variable
Na462
2.3k
views
asked
Nov 19, 2018
Programming in C
programming-in-c
extern-variable
+
–
1
1 vote
0
0 answers
1.2k
1.2k views
doubt extern variable here they initialized it is it valid ?
extern int num = 10; // is it valid ??
sumit goyal 1
1.2k
views
asked
Jan 19, 2018
Programming in C
programming-in-c
extern-variable
+
–
3
3 votes
2
answers
2 answers
2.8k
2.8k views
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 _______
targate2018
2.8k
views
asked
Jan 15, 2018
Programming in C
programming-in-c
extern-variable
output
+
–
7
7 votes
2
2 answers
2.0k
2.0k views
test series
extern int i;int i=5;i=10;int main(){ printf("\ni=%d",i); return 0;}output is?
parulk
2.0k
views
asked
Jan 11, 2018
Programming in C
programming-in-c
extern-variable
variable-scope
+
–
3
3 votes
1
1 answer
1.5k
1.5k views
[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 c...
rahul sharma 5
1.5k
views
asked
Nov 23, 2017
Programming in C
programming-in-c
extern-variable
+
–
3
3 votes
1
1 answer
3.3k
3.3k views
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 ...
Shubhanshu
3.3k
views
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
.