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 does typedef struct mean?
What is linear search?
program to convert a integer to string in c language'
What's the total generic pointer type?
Which is the memory area not included in C program? give the reason
Can math operations be performed on a void pointer?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
what is the difference between 123 and 0123 in c?
Are pointers really faster than arrays?
Why malloc is faster than calloc?
What is the use of void pointer and null pointer in c language?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Explain how can a program be made to print the line number where an error occurs?