Question: 8 . 1 9 LAB: Remove all odd numbers from an array Complete the RemoveOdds ( ) function that has three parameters: the array size

8.19 LAB: Remove all odd numbers from an array
Complete the RemoveOdds() function that has three parameters: the array size and two integer arrays. Function RemoveOdds() should fill the second array with the even elements of the first array and return the number of elements in the second array.
Ex: If the elements of the input array are [1,2,3,4,5,6,7,8,9], then RemoveOdds() should return 4, and the elements of the second array should be 2,4,6, and 8.
Ex: If the elements of the input array are [2,8,6], then RemoveOdds() should return 3, and the elements of the second array should also be 2,8, and 6.

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!