HTML Tutorial || Networking Assignment || Computer Full Forms || Ms-Office Shortcut Keys || Ms-Office Notes || Number System Notes || Internet Assignment
JavaScript Tutorial || CSS Tutorial || Operating System Notes || History of Computer Assignment || Netwoking Notes || Computer Fundamentals Notes

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();
      }