ShriRam Changed status to publish July 15, 2022
#include<stdio.h>
#include<conio.h>
void main()
{
int arr1[100], arr2[100],i,num;
printf("\nEnter No. of elements :");
scanf("%d", &num);
printf("\nEnter the values : ");
for (i = 0; i< num; i++)
{
scanf("%d", &arr1[i]);
}
for (i = 0; i< num; i++)
{
arr2[i] = arr1[i];
}
printf("The copied array is :");
for (i = 0; i< num; i++)
printf("\narr2[%d] = %d", i, arr2[i]);
getch();
}
ShriRam Changed status to publish July 15, 2022