noexit4u.com
Pages
(Move to ...)
Home
C Program List
Java Program List
Miscellaneous
Upload
Contact Us
Disclaimer
▼
Category
C Program
HD Wallpaper
HjSplit
Java Program
Mozilla Firefox
Tutorials
Video
VLC
Windows
Adsense responsive
Friday, 22 February 2013
C PROGRAM: TO PRINT 12345 USING FUNCTION AND STATIC VARIABLE
CODING:
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
clrscr();
for(i=1;i<=5;i++)
stat();
getch();
}
stat()
{
static int a=0;
a+=1;
printf("%3d",a);
}
CODING
OUTPUT
For any query or suggestion please comment below...
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment