Question: Write a search function that searches a value in an array, it returns 1 if the value exists, returns 0 if it does not exist.
Write a search function that searches a value in an array, it returns 1 if the value exists, returns 0 if it does not exist. Use pointers, pointer arithmetic, and array name as pointer for function argument. function prototype: int search (int astir a, int n, int key)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
