What are the average number of comparisons required to sort
3 elements?
Answer Posted / jaiprakash
n(n-1)/2(bubble sort)
n=3
(3*2)/2=3(n)
ans:n
Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What is wrong in this statement? scanf(ā%dā,whatnumber);
Can you please explain the difference between malloc() and calloc() function?
Explain how can I make sure that my program is the only one accessing a file?
What are logical errors and how does it differ from syntax errors?
What is "Hungarian Notation"?
Is main an identifier in c?
Explain the ternary tree?
Write a program to generate the Fibinocci Series
why we wont use '&' sing in aceesing the string using scanf
What is c definition?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What are the advantages and disadvantages of pointers?
Explain the use of 'auto' keyword
What is your stream meaning?