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 |
write a own function for strstr
Write a program to add a given duration with time(24hrs format)
shorting algorithmS
pascal triangle program
How can I insert or delete a line (or record) in the middle of a file?
In which layer of the network datastructure format change is done
What are structures and unions? State differencves between them.
How do you determine a file’s attributes?
Explain spaghetti programming?
Write a main() program that calls this function at least 10 times. Try implementing this function in two different ways. First, use an external variable to store the count. Second, use a local variable. Which is more appropriate?
Is both getch() and getchar() functions are similar? if it is similar means why these two functions are used for same usage? if it is not similar means what is the difference?
Is array name a pointer?