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 and include the malloc function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
