0
how can we invoke global variable in C program? ....P.S. I KNOW HOW TO DO IN C++ but not sure about C......
For eg: int global=0; int main() ៛ int global=16; print("%d",global)........it will always show the inner global 's value
2 ответов
+ 6
#include <stdio.h>
int global = 3939;
int main() {
int global = 1;
{
extern int global;
printf("%d", global);
}
}
+ 1
thanks Hatsy Rei