Question: Write a c++ function, void Evenoddsort, which takes an array of 8 integers as an argument and sorts the array so that the even numbers

Write a c++ function, void Evenoddsort, which takes an array of 8 integers as an argument and sorts the array so that the even numbers come first and the odd numbers come last without disturbing the order in any other way. For example, if the array (1,4,2,3,5,8,7,6) was passed to your function the array would change to (4,2,8,6,1,3,5,7}, Only write the function- you do not need to write any test code. Note that the function MUST have a void return type.

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!