5. 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 / rajesh
Selection Sort
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the difference between struct and typedef struct in c?
why wipro wase
What does sizeof return c?
Is it acceptable to declare/define a variable in a c header?
How can you restore a redirected standard stream?
Can we initialize extern variable in c?
What is an operator?
What is the use of a conditional inclusion statement in C?
What is the scope of static variable in c?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
How many levels of indirection in pointers can you have in a single declaration?
Can the “if” function be used in comparing strings?
What is a string?
What are extern variables in c?
Does c have circular shift operators?