Explain the program.
The following program uses a linear search to search aparticular section of an array. What will it print ?
#include <iostream>
using namespace std ;
int searchList( const int list[], int size, int value, intleftIndex, int rightIndex )
{
int index =0; // Used as a subscriptto search array
int position = -1; // To recordposition of search value
bool found = false; // Flag to indicate ifthe value was found
for( int i1=leftIndex ; i1<= rightIndex ; i1++)
{
cout << list[i1] << ” : ” ;
if (list[i1] == value) // If the value is found
{
cout << list[i1]<<
PayPal Gateway not configured
PayPal Gateway not configured