Write the following function:

c) Write the following function:
Bool search(int a[], int n, int x);
Where a is an array to be searched, n is the number of elements in the array, and x is
the search key. “search” should return TRUE if x matches some element of a, FALSE if it
doesn’t. Use pointer arithmetic to visit array elements. Include appropriate
documentation in your program.

Leave a Reply