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 / jitendra kumar arya
c)seletoin sort
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can a program have two main functions?
What do you mean by c?
Where static variables are stored in c?
Explain the use of keyword 'register' with respect to variables.
What is #line?
What is typedef example?
Explain what is a program flowchart and explain how does it help in writing a program?
What are the types of type qualifiers in c?
Is it valid to address one element beyond the end of an array?
Can you write the function prototype, definition and mention the other requirements.
what do you mean by inline function in C?
Can a void pointer point to a function?
What is a null pointer in c?
Can you return null in c?
Explain how can you restore a redirected standard stream?