int function ( int arg0 , int [ ] arg1 ) { int loc0 = 0 ; int loc1 = arg1 . length - 1 ; while ( loc0 <= loc1 ) { int loc2 = loc0 + ( loc1 - loc0 ) / 2 ; if ( arg0 < arg1 [ loc2 ] ) loc1 = loc2 - 1 ; else if ( arg0 > arg1 [ loc2 ] ) loc0 = loc2 + 1 ; else return loc2 ; } return - 1 ; }
searches for the integer key in the sorted array a . concode_field_sep PlaceHolder placeHolder concode_field_sep void main