C program to copy all elements of an array to another array

 

Sample Input
Enter no of elements :5
Enter the values :1 2 5 2 9
Sample Output
The copied array is :
arr2[0] = 1
arr2[1] = 2
arr2[2] = 5
arr2[3] = 2
arr2[4] = 9

You may also like...