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 program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Can I pass constant values to functions which accept structure arguments?
How can I read data from data files with particular formats?
how to swap two nubers by using a function with pointers?
Write a program using bitwise operators to invert even bits of a given number.
What is an identifier?
What does c mean before a date?
Given an array of characters, how would you reverse it? How would you reverse it without using indexing in the array?
Tell me what is null pointer in c?
to convert a string without using decrement operater and string functions
int i=~0; uint j=(uint)i; j++; printf(“%d”,j);
64/square(4)