What will be the output of the following code?
#include <stdio.h>
int x = 10;
void print() {
extern int x;
printf("%d\n", x);
}
int main() {
print();
return 0;
}
10
Garbage Value
Compilation Error
0
This question is part of this quiz :
Storage Classes and Type Qualifiers in C