#include using namespace std; int search(int A[], int n, int key) { // A linear search strategy // If key is in the array A returns the index of occurrence. int i= 0; while (i