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

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: , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs