I have declared a global variable. But when i assign the "i" in the loop as the function parameter, the global variable does not chang. It seems that it creats another variable "i" and assigns it to that "i". Is it possible once i have declared the global "i"?? I'm little bit confused.Can u plz explain it n hlp me out.:):?:
#include <stdio.h>
int i;
void increment( int i )
{
i++;
}
int main()
{
for( i = 0; i < 10; increment( i ) )
{
}
printf("i=%d ", i);
return 0;
}
thnx in adv...:-O