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
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What is the benefit of using const for declaring constants?
how can i get output the following... 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 and 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 plz plz...
How will you divide two numbers in a MACRO?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Suppose I want to write a function that takes a generic pointer as an argument and I want to simulate passing it by reference. Can I give the formal parameter type void **, and do something like this? void f(void **); double *dp; f((void **)&dp);
What are the types of type specifiers?
What is operator precedence?
What is a global variable in c?
How can I determine whether a machines byte order is big-endian or little-endian?
Tell about strtok & strstr functions
2 Answers HCL, iFlex, Motorola,
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same