C PROGRAMMING
wirte a c program to perform basic operations on arrays
#include<stdio.h>
#include<conio.h>
void main()
{
int a[100],a2[100],n,i;
printf("Enter No. of Elements you want to enter in Array : n");
scanf("%d",&n);
for(i=0;i<n;i++)
{
printf("Enter %d Element ",i+1);
scanf("%d",&a[i]);
}
printf("Elements in array are : n");
for(i=0;i<n;i++)
printf("%dt",a[i]);
for(i=0;i<n;i++)
{
a2[i]=a[i];
}
printf("nElements in array after copying are : n");
for(i=0;i<n;i++)
printf("%dt",a2[i]);
getch();
}