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 / santhoo035
c
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What are register variables in c?
Explain the difference between call by value and call by reference in c language?
What is a pointer and how it is initialized?
Explain what are the advantages and disadvantages of a heap?
Why should I prototype a function?
What are the __date__ and __time__ preprocessor commands?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
What are the types of type qualifiers in c?
Why header files are used?
What is a pointer on a pointer in c programming language?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What is the meaning of typedef struct in c?
What is data structure in c language?
How can I do graphics in c?