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
can u write a program in C, which does not use = (eqaul)or any arithmatic assignment(like -=,+=,*= etc) operator to swap to number?
what is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means....
What is bss in c?
What is the Lvalue and Rvalue?
int main() { int days; printf("enter days you are late"); scanf("%d",days); if (days<=5) printf("5o paisa fine"); if (days<=10&&days>=6) printf("1rs fine"); if(days>10) printf("10 rs fine"); if(days=30) printf("membership cancelled"); return 0; } tell me whats wrong in this program? is it right?
please give code for this 1 2 4 7 11 16
Is the following code legal? struct a { int x; struct a b; }
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
Give a method to count the number of ones in a 32 bit number?
Explain the properties of union.
What is the difference between GETS();AND SCANF();
Explain the use of keyword 'register' with respect to variables.