Question: A one - dimensional array of integers is given, write a program to rearrange elements of the array into another array in a way that

A one-dimensional array of integers is given, write a program to rearrange elements of the array into another array in a way that all odd values follow all even values; the new array is not sorted. For example, if the old array contains 11,2,31,4,5,0, the new array should contain 2,4,0,11,31,5.(7 points).
A one - dimensional array of integers is given,

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 Programming Questions!