Question: Hard Write a C program that do the following: Declare two integer arrays each of size 5 . Input the elements of the arrays from

Hard
Write a C program that do the following:
Declare two integer arrays each of size 5.
Input the elements of the arrays from the keyboard.
, Swap the two arrays (swap the value of the first element in the first array (array1[0]) with the last element of the second array (array2[4]) and so on.
The sample output is:
Enter second array elements :
enter element 1 : 6
enter element 2:7
enter element 3:8
enter element 4:9
enter element 5:10
\table[[,\table[[9],[array:]],8,7],[5,4,3,2]]
 Hard Write a C program that do the following: Declare two

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!