Return a borrowed pointer to the first match

Write const int *find_first(const int *a, size_t n, int key), returning a pointer to the first matching element or NULL. Empty input may use a = NULL; nonempty input provides n live ints. Write a driver reading n in 0..8, key and n representable ints. Print not found or index=<zero-based index> value=<value>. Explain why subtraction is legal only on the success branch, and why the caller must not free this returned pointer.


