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 / jitendra kumar arya
c)seletoin sort
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What does the error message "DGROUP exceeds 64K" mean?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What is void main () in c?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
What is const volatile variable in c?
What are the differences between new and malloc in C?
Explain the difference between malloc() and calloc() function?
What are different types of pointers?
Write a program with dynamically allocation of variable.
What is a union?
What are pointers? What are different types of pointers?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
how could explain about job profile