Question: C++ PROGRAMMING LANGUAGE! C++ C++ I need help with this code. I wrote the instructions in the comments. #include using namespace std; const int SIZE

C++ PROGRAMMING LANGUAGE!

C++

C++

I need help with this code. I wrote the instructions in the comments.

#include  using namespace std; const int SIZE = 6; void print(int []); void count(int [],int *,int *,int *); int main() { int arr[SIZE] = {4,-3,2,-1,2,0}; int countPositive = 0; int countNegative = 0; int countZero = 0; print(arr); // print the array. count(arr,&countPositive,&countNegative,&countZero); // call count function //write statement that display values for countPositive,countNegative and countZero // It should be 3, 2 and 1 respectively according to values in array above. cout << endl; return 0; } //Function to count occurences of positive numbers, negative numbers and zeroes //in the array passed. void count(int arr[],int *ptrPositive,int *ptrNegative,int *ptrZero) { // write code to loop thru the array arr using [] notation // and test, that if > 0 increment value pointed by ptrPositive // if < 0, then increment value pointed by ptrNegative // else increment ptrZero } //print the array using pointer notation void print(int *ptrArray) { } 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!