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 / murali
Bubble sort
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What does *p++ do? What does it point to?
What is double pointer?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
How would you use the functions fseek(), freed(), fwrite() and ftell()?
Are local variables initialized to zero by default in c?
Explain what is a pragma?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
is it possible to create your own header files?
When is a void pointer used?
What is typedf?
Which are low level languages?
What are header files? What are their uses?
How old is c programming language?
How do shell structures work?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above