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
How to set file pointer to beginning c?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is new line escape sequence?
In a header file whether functions are declared or defined?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What is %d called in c?
What does nil mean in c?
How can I write a function that takes a format string and a variable number of arguments?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What does the error 'Null Pointer Assignment' mean and what causes this error?
Difference between malloc() and calloc() function?
what is the significance of static storage class specifier?
What is array of structure in c?
What is time complexity c?
What is c variable?