Question: C++ please answer ASAP Question 3: Write a function that takes a pointer to an array of integers and return the count of positive numbers
Question 3: Write a function that takes a pointer to an array of integers and return the count of positive numbers found in that array. int count Post(int *values, int size); Write a main program to test your function, you should ask the user for the size, read an array with given size using the readArray function from the user and then print back to the user the number of positive values in your array that you found by calling the countPost function. A sample output is given below: Please enter the size: 10 Please enter 10 elements: 10 0 -4 -2 1 3 -6 7 -1 9 The count of positive values is : 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
