Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please using C program. Question 6 (Programming) Write a function with name getEvenNumbers. The purpose of the function is to process an input array of

Please using C program.image text in transcribed

Question 6 (Programming) Write a function with name getEvenNumbers. The purpose of the function is to process an input array of int typed integers and return the list of even numbers in the array. The function needs to be able to handle input arrays with arbitrary lengths. The return type of the function must be "int *", or pointer to int, namely that the function returns a pointer pointing to the memory storing the list of even numbers. No global variables are allowed. Except for these requirements, you are free to design the function. You also need to write a testing program (namely a main function) to show your design and implementation of this function are correct. Your testing program needs to do the following: first it asks the user to enter a positive integer N, then it generates a length-N array of random integers; then calls your function getEvenNumbers to get the list of even numbers in this array, and finally prints the list

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions