5. 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
What is pass by value in c?
What is the scope of static variables in c language?
what is available in C language but not in C++?
10 Answers CTS, TCS,
What are the disadvantages of external storage class?
What do you mean by c what are the main characteristics of c language?
how does the for loop work actually..suppose for the following program how it ll work plz explain to me for(i=5;i>=0;i--) prinf(i--);
i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) { k+=j<10?4:3; } printf("%d", k);
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
#define DCHAR char* typedef char* TCHAR; if using these following variables will be declared like DCHAR ch1, ch2; TCHAR ch3, ch4; then what will be types of ch1, ch2, ch3 and ch4?
How many types of arrays are there in c?
write a c programme for add of two numbers with out use of arthematic operators
what is the differance between pass by reference and pass by value.