A Moving to the next question prevents changes to this answer. Question 3 Create a function called reduce Inputs are the starting address of an integer array and the size of the array Dynamically...

Solved and run the code in C++ plzA Moving to the next question prevents changes to this answer.<br>Question 3<br>Create a function called reduce<br>Inputs are the starting address of an integer array and the size of the array<br>Dynamically allocate memory for a new array half the size of the inputted array<br>• Using a loop place every other element from the inputted array into the newly created a<br>Return the address of the new array<br>Create a function called print<br>Inputs are the starting address of an integer array and the size of the array<br>Using a loop print out all the elements from the inputted array<br>In the main function<br>Create the following integer array int x[] = {3,5,21,45,16,19)3;<br>Use the reduce function to reduce the size of the array x<br>Use the print function to print out the array x and the reduced version of x<br>Free up all allocated memory<br>Use function prototypes and pointer notation for all arrays.<br>Output example<br>35 21 45 16 19<br>321 16<br>TTTT<br>Paragraph v<br>Arial<br>3 (12pt)<br>T<br>fx<br>圍<br>Mashups<br>III<br>><br>

Extracted text: A Moving to the next question prevents changes to this answer. Question 3 Create a function called reduce Inputs are the starting address of an integer array and the size of the array Dynamically allocate memory for a new array half the size of the inputted array • Using a loop place every other element from the inputted array into the newly created a Return the address of the new array Create a function called print Inputs are the starting address of an integer array and the size of the array Using a loop print out all the elements from the inputted array In the main function Create the following integer array int x[] = {3,5,21,45,16,19)3; Use the reduce function to reduce the size of the array x Use the print function to print out the array x and the reduced version of x Free up all allocated memory Use function prototypes and pointer notation for all arrays. Output example 35 21 45 16 19 321 16 TTTT Paragraph v Arial 3 (12pt) T fx 圍 Mashups III >

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here