Friday, September 28, 2012

How to use Array Statement simple trick


#include<stdio.h>
#include<conio.h>
void main()
{
int i,a [5];
clrscr();
printf("Enter Velue");

for(i=0; a<=5; i++)
{
scanf("%d",&a[i]);
}

printf("Elements of Array");

for(i=0; a<=5; i++)
{
printf("\nA[i], %d",i, a[i]);
}
gethc();
}

2 comments: