Implement a recursive member function that finds an element in an array.

Implement a recursive member function that finds an element in an array.

1
2
3
4
member([5, 4, 3, 2], 4) returns True
boolean member(int arr[], int x){
return helper(arr, x, counter)
}
Topic archived. No new replies allowed.