Question: use simple c++ and no std function Question 3: [40 points) Write and test the function flagArray ( ) that is passed an array of
Question 3: [40 points) Write and test the function flagArray ( ) that is passed an array of n pointers to integers, the number of these pointers n and a target value x. The function returns a pointer to a dynamically created array that contains a value 1 in all the locations that correspond to the matching x, 0 otherwise. int * flagArray ( int *p | 1, int n, int x); Array of pointers Array Returned for a matching value of 10 Integers 10 10 30 1 1 0 1 0 10 50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
