#include<stdio.h>
int fun()
{
static int count = 0;
count++;
return count;
}
int main()
{
printf("%d ", fun()); // prints 1
printf("%d ", fun()); // prints 2
return 0;
}
#include <stdio.h>
void display();
int main()
{
display();
display();
}
void display()
{
static int c = 1;
c += 5;
printf("%d ",c);
}
int fun(int i);
int main()
{
int i, j;
for(i=0;i<=5;i++)
{
j = fun(i);
}
printf("%d", j);
}
fun(int i)
{
static int count = 0;
count = count + 1;
return count;
}
static int i;