Hi ,
Is there any way to get the value of a global variable to a method in C which has the same variable declared in it ? For eg:
Is there any way to get the value of the global variable i=4 in the method main() which is possible in C++ (using scope resolution operator)Code:#include <stdio.h> # include <conio.h> int i=4; int main() { int i=5; printf(" i is %d ",i ); getch(); }