If i remove this 'static' then nothing will print what is the reason behind this?
#include<stdio.h>
int *fun();
int main()
{
int *p;
p=fun();
printf("Address=%u\n",p);
printf("Value at that address=%d\n",*p);
return 0;
}
int *fun()
{
static int i=1;
return (&i);
}