Please see the code below :-
insertWhen i print the value of i in main , i expect it to give a garbage value since the variable i is local to fun.Code:
p = fun();
printf("Value of i %d" , *p);
int i = -214223;
But actually its giving me the correct value.
How is this possible....Please help