Ok basically the program is supposed to count all the positive, negative and zero numbers in the array. I tried to do it but the outputs is 0 for all positive, negative and zero numbers. It needs to display that there are 3 positive numbers, 2 negative numbers and 1 zero number. Does anyone want to help me what I did wrong? Thank you!
Right now the code is trying to increment the pointer.
ptrPositive++;
You want to increment the value pointed to by the pointer, so you need to use the dereference operator * on the pointer to get to the value pointed to, then increment that.