The code below produces this output
1 : 9 : 3 : 3 :
2 : 1 : 9 :
2 : 1 : 9 :
Explain in detail why it displays this output.
#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
PayPal Gateway not configured
PayPal Gateway not configured