QuesAns Print Page – CSKC
Sign In

Search

siteicon
Q&A ICSE2018-01B #7166

Question:

Differentiate between searching and sorting.

Answer:

In searching, we are provided with an array which contains multiple elements and asked to find the index of a specific element.
In sorting, an array is provided and we are asked to order the elements in either ascending or descending order.