Question: Function findEven() will accept as parameters an array of positive integers and its size. It will find all the even numbers and put them in

Function findEven() will accept as parameters an array of positive integers and its size. It will find all the even numbers and put them in another array which is to be returned to the calling function. In addition, put negative 1 at the end of the array containing the even numbers.

Do the following:

1. Write the function header.

2.Write the sample function call. Before the function call, declare all variables used in the call. Initialize them if necessary.

3.Assume that the function call is in the main() function, draw the execution stack. Draw a box for every variable and label it with a name, value, and address (arbitrary address A100, B100, C100, ).

4.Write the code of the function.

5.Copy the execution stack in step #3 and simulate.

Submission Requirement

Write your answers in a document file(doc, xls, ppt, etc.). If possible, convert the file into PDF. Use only C programming.

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!