Friday 25 June 2010

Program on 1- D array Initialisation

//1- D array Initialisation

#include<stdio.h>
#include<conio.h>
void main()
{
 int i;
 int a[]={1,2,3,4,5};
 clrscr();

 printf("array is\n");
 for(i=0;i<5;i++)
 printf("%d\n",a[i]);
 getch();
}
You may like the following posts:
Arrays

No comments:

Post a Comment