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


Please Help Members By Posting Answers For Below Questions

Can a program have two main functions?

573


What do you mean by c?

590


Where static variables are stored in c?

588


Explain the use of keyword 'register' with respect to variables.

590


What is #line?

611






What is typedef example?

618


Explain what is a program flowchart and explain how does it help in writing a program?

650


What are the types of type qualifiers in c?

651


Is it valid to address one element beyond the end of an array?

675


Can you write the function prototype, definition and mention the other requirements.

664


what do you mean by inline function in C?

619


Can a void pointer point to a function?

574


What is a null pointer in c?

598


Can you return null in c?

598


Explain how can you restore a redirected standard stream?

593