What kind of sorting is this?
SORT (k,n)
1.[Loop on I Index]
repeat thru step2 for i=1,2,........n-1
2.[For each pass,get small value]
min=i;
repeat for j=i+1 to N do
{
if K[j]<k[min]
min=j;
}
temp=K[i];K[i]=K[min];K[min]=temp;
3.[Sorted Values will be returned]
A)Bubble Sort
B)Quick Sort
C)Selection Sort
D)Merge Sort
Answer Posted / subbu
answer is a
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is a const pointer?
What does the && operator do in a program code?
Explain how can I read and write comma-delimited text?
Difference between goto, long jmp() and setjmp()?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
What is volatile c?
What is the difference between array and linked list in c?
why do some people write if(0 == x) instead of if(x == 0)?
What is struct node in c?
What does #pragma once mean?
Why is extern used in c?
In which header file is the null macro defined?
What is the total generic pointer type?
What is ctrl c called?
Why does everyone say not to use gets?