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
WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
2 Answers HCL, IBM, Satyam, Vimal, Vimukti Technologies,
Why & is used in c?
Explain void pointer?
What is bubble sort in c?
Write a program using bitwise operators to invert even bits of a given number.
write a program for size of a data type without using sizeof() operator?
22 Answers HCL, IBM,
Differentiate between static and dynamic modeling.
What happens if you free a pointer twice?
What is memcpy() function?
What is a program?
what is the difference between entry control and exit control statement?
12 Answers Darbari Lal DAV Model School,