Consider the following C program that attempts to locate an element in an array using binary search. The program is erroneous.
- f (int Y[10] , int x) {
- int i, j, k;
- i= 0; j = 9;
- do {
- k = (i+ j) / 2;
- if( Y[k] < x) i = k;else j = k;
- } while (Y[k] != x) && (i < j)) ;
- if(Y[k] == x) printf(" x is in the array ") ;
- else printf(" x is not in the array ") ;
- }
On which of the following contents of and does the program fail?