Does static variable initialize only one time? does it ignore its initialize statement static int i=1, so it won't set it to 1 again so does it read it only first time then it ignores? how does it this work. if function called again and again, can anyone explain this? Output: 123
#include<stdio.h>
void increment();
int main()
{
increment();
increment();
increment();
}
void increment()
{
static int i = 1 ;
printf("%d",i);
i=i+1;
}