Write a program to show the usage of storage class:static.
/* Write a program to show the usage of storage class:static*/
#include
<stdio.h>
void disp()
{
static int i=5;
printf("I=%d\n",i);
i++;
}
void main()
{
disp();
disp();
disp();
getch();
}
Comments
Post a Comment