copy first array into another array,c array copy example,c array sort,objective c array copy,array copy and clone in c,
#include"stdio.h"
#include"conio.h"
void main()
{
int first[10],second[10],i;
clrscr();
printf("Enter 10 number into first array=\n");
for(i=0;i<10;i++)
{
scanf("%d",&first[i]);
second[i]=first[i];
}
printf("\n\nCopied array is=\n");
for(i=0;i<10;i++)
{
printf("%d\n",second[i]);
}
getch();
}
#include"conio.h"
void main()
{
int first[10],second[10],i;
clrscr();
printf("Enter 10 number into first array=\n");
for(i=0;i<10;i++)
{
scanf("%d",&first[i]);
second[i]=first[i];
}
printf("\n\nCopied array is=\n");
for(i=0;i<10;i++)
{
printf("%d\n",second[i]);
}
getch();
}