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 / subbu
answer is a
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What does typedef struct mean?
Can a file other than a .h file be included with #include?
What are the 3 types of structures?
write a c program in such a way that if we enter the today date the output should be next day's date.
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What should malloc(0) do?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What are the different types of control structures?
What are the data types present in c?
Is null always defined as 0(zero)?
difference between object file and executable file
What is the difference between new and malloc functions?
How can I implement a delay, or time a users response, with sub-second resolution?
What is c mainly used for?