[implementing-useful-algorithms-in-c.pdf](https://example.com/implementing-useful-algorithms-in-c.pdf)
arr[j + 1] = key;
```c int linearSearch(int arr[], int n, int target) for (int i = 0; i < n; i++) if (arr[i] == target) return i; return -1;
[implementing-useful-algorithms-in-c.pdf](https://example.com/implementing-useful-algorithms-in-c.pdf)
arr[j + 1] = key;
```c int linearSearch(int arr[], int n, int target) for (int i = 0; i < n; i++) if (arr[i] == target) return i; return -1; implementing useful algorithms in c pdf