1.

In C, what are the basic loops required to perform an insertion sort?(a) do- while(b) if else(c) for and while(d) for and ifThis question was posed to me by my school teacher while I was bunking the class.The doubt is from Insertion sort in division Sorting of Data Structures & Algorithms II

Answer»

Right ANSWER is (c) for and while

For explanation: To PERFORM an insertion SORT, we use two basic loops- an OUTER for LOOP and an inner while loop.



Discussion

No Comment Found

Related InterviewSolutions