Questions tagged [linear-search]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
156 views

Pset3 Linear Search (control may reach end of non-void function)

This seems pretty simple, but I'm not sure what I'm doing wrong. Thanks in advance for helping! bool search(int value, int values[], int n) { if (n >= 0) { for (int i = 0; i <= n; i++...