C Program to Copy an Array to Another Array

This c program will copy all the elements from an array to Another array with the help of for loop. Copy the below program and execute it with help of the c compiler.

We assume you have basic knowledge of c programming language, Array in c programming, For loop in c.

Enter the number of array elements:5
Enter the array elements:30
60
80
70
60
The copied array is:
arr2[0] = 30
arr2[1] = 60
arr2[2] = 80
arr2[3] = 70
arr2[4] = 60

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , , , ,