to search using if condition and the for loop.if any element matches with that key then this function returns 1, otherwise, it returns 0 to main() function at ‘if” condition.
2) the search() function will be called by passing an array, array size, key as arguments.
3) if the function search() returns 1 to if condition,then if(1) is true and prints “element found”.if it returns 0 then if(0) is false and prints “element not found”.
in the main() search() function will be called by passing an array,0,array size,key as arguments in if condition.
a) it checks the a[i]==key,if key matches with a[i] then this function returns 1 to main() at if condition.
b) if key 