Recursive function returns subscript of first negative element in array[code]int firstNegative(const double a[], int n) { if (n < 1) return -1; if (a[n-1] < 0 && firs...
Recursive function returns subscript of first negative element in arrayNo worries, I actually want to learn this stuff. I honestly don't know why I didn't think of that...
Recursive function returns subscript of first negative element in arrayYep, no global variables. So, my solution so calls another function we defined in a previous part...
Recursive function returns subscript of first negative element in arrayWe aren't allowed to use static variables. I'll try to figure out what simeonz meant in a little bit...
Recursive function returns subscript of first negative element in arrayBut I am to return the FIRST index of negative value, not the last.
This user does not accept Private Messages