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 pragma c?
Is fortran still used today?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
Why is structure padding done in c?
What is else if ladder?
What is the argument of a function in c?
What are the 4 types of programming language?
Which of these functions is safer to use : fgets(), gets()? Why?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
Explain how can you tell whether a program was compiled using c versus c++?
What are header files and explain what are its uses in c programming?
What is #include conio h?
What is difference between structure and union in c?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
What is character set?