Write a program which should consists of a user defined function “Task ()” [Function returns no value]. Pass 1D array to the function, along with number of elements of arrayand element to search. Function should implement linear search, and if the element is not found in the array, then insert that element at the end of array .Display the final array after insertion[After function is called] in the main () function. [Note: Array should be passed using by reference approach]
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here