I am facing a simple problem, I couldn't figure out the right condition when it comes to check the value of index 0
Here is the question
Write a recursive function named SeparateNumbers which takes as parameters an array of integers and the array size. The function should print out all the positive numbers and then all the negative numbers. The function should NOT print any of the zeros in the array. The prototype for the function is:
void SeparateNumbers (int array[], int size);
Example
If the array contains the following values before calling the function SeparateNumbers: 1 0 4 -3 5 2 -7 2
The function SeparateNumbers should display the following output:
2 2 5 4 1 -3 -7