Hi, I was wondering is there any technique available, so we can access the global variable inside a function if we have a local variable inside the function with the same name as global variable.
Example
So here in function myFunction i have a local variable same as global variable.
So inside the function can i still use global variable(countV al). If yes how.?
Regards
Dheeraj Joshi
Example
Code:
#include<something.h> int countVal = 100; /* Some stuff */ void myFunction() { int countVal; }
So inside the function can i still use global variable(countV al). If yes how.?
Regards
Dheeraj Joshi
Comment