What are the average number of comparisons required to sort
3 elements?
Answers were Sorted based on User's Feedback
Answer / jaiprakash
n(n-1)/2(bubble sort)
n=3
(3*2)/2=3(n)
ans:n
| Is This Answer Correct ? | 13 Yes | 1 No |
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
to get a line of text and count the number of vowels in it
How can you pass an array to a function by value?
c programming of binary addition of two binary numbers
code for find determinent of amatrix
Can math operations be performed on a void pointer?
How can a process change an environment variable in its caller?
What do you understand by normalization of pointers?
Can the size of an array be declared at runtime?
write a c program for greatest of three numbers without using if statment
Difference between malloc() and calloc() function?
How do you initialize pointer variables?