Since 0 is a valid result for a successful search, the first available insertion point is -1. Therefore, the actual insertion point is represented as (-(insertion point) -1). For instance, if the insertion point of a search is at element 2, the actual insertion point returned will be -3.
does it mean to say if I'm searching for String "c" in the following array
insertion point would be 2 since "c" is not present in array and the actual insertion point returned will be -3. Is it correct. Thanks.