Its ok buddy... now its working fine on 98 machine....
A Simple C Program to read and print a one-dimensional array
Code:
#include <stdio.h>
#include<conio.h>
void main()
{
int a[10];
int i,n;
printf("\nEnter number of elements in the array:");
scanf("%d",&n);
printf("\nEnter the array elements\n");
for(i=0;i<n;i++)
scanf("%d",&a[i]);
printf("\nArray elements are\n");
for(i=0;i<n;i++)
printf("\t%d",a[i]);
return 0;
Getch()
}