What are the average number of comparisons required to sort
3 elements?

Answer Posted / hell2heaven

I think answer is 3.is it right?

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

program to convert a integer to string in c language'

1989


In a byte, what is the maximum decimal number that you can accommodate?

629


What is array of pointers to string?

575


What is #define?

578


What is static memory allocation? Explain

634






Can we change the value of #define in c?

588


Are global variables static in c?

681


What is advantage of pointer in c?

700


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1858


How are strings stored in c?

599


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

630


What is a volatile keyword in c?

646


What is optimization in c?

572


Are there constructors in c?

600


What are the advantages of using linked list for tree construction?

647