C program to Input an Array of 7 Elements & Copy the Contents of One Array into Another Array ?
Q:- Write a C program to Input an
Array of 7 Elements & Copy the Contents of One
Array into Another Array ?
#include<stdio.h>
#include<conio.h>
main()
{
int a[7],b[7],I;
clrscr();
printf(“Enter 7 Elements =”);
for(i=0;i<7;i++)
{
scanf(“%d”,&a[i]);
b[i]=a[i];
}
printf(“\n Elements of Array B are
\n”);
for(i=0;i<7;i++)
printf(“%d\n”,b[i]);
getch();
}