Write a generic function in c to search an array or vector


Write a generic function in C++ to search an array (or vector) for a value supplied as a parameter. Let the function return the position found in the array on success, or (-1) on failure. Use sequential search (nothing fancy!). Compile and run your code; compare the result if you are using integers or oats with fractional values. Why is there a difference?

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Write a generic function in c to search an array or vector
Reference No:- TGS0616409

Expected delivery within 24 Hours