Computer Applications

For inserting of an element in a sorted array, the elements are always shifted to make room for the new entrant. True or False ?

Java Arrays

1 Like

Answer

True

Reason — For inserting of an element in a sorted array, the elements are always shifted to make room for the new entrant, the only exception being when the element is inserted at the end of the array.

Answered By

1 Like


Related Questions