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
Answers were Sorted based on User's Feedback
how can i print "hello".please consider inverted commas as well.i want to print on console: "hello"
Why does not use getgh(); and <conio.h> in c language.
What is calloc() function?
How can I get the current date or time of day in a c program?
What is the scope of static variable in c?
Subtract Two Number Without Using Subtraction Operator
what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }
How can I handle floating-point exceptions gracefully?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What are the header files used in c language?
When do you say that a digraph is acyclic A)if and only if its first search does not have back arcs B)a digraph is acyclic if and only if its first search does not have back vertices C)if and only if its first search does not have same dfnumber D)None of these
Write a program to generate random numbers in c?