Hi all, I have a minor confusion regarding the variable accessed
Consider:
int a=5; //global variable
void increment(int a)
{
++a;
}
If I call increment() in main(), which a will be incremented (a passed as a parameter to the function or the global a ?)
Also specify the order of precedence for variables when they need to be accessed. (global,local variable etc)