User: dhv

  • Public profile

User profile: dhv

User info
User name:dhv
History
Joined:
Number of posts:8
Latest posts:

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 array
No 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 array
Yep, 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 array
We 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 array
But I am to return the FIRST index of negative value, not the last.

This user does not accept Private Messages