Welcome ! to C Language Extreme Programmings
Blog through learn the programming
complete examples.
Write a c program to print a number using static function.
#include<stdio.h>
#include<conio.h>
main()
{
static int x;
int i;
clrscr();
printf("\n enter the value of x");
scanf("\n%d",&x);
for(i=0;i<5;i++)
{
printf("\n %d",x);
}
return (0);
}