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 |
Explain modulus operator.
What are the rules for the identifier?
what is a pointer
4 Answers Bank Of America, TCS,
Explain how can type-insensitive macros be created?
What are control structures? What are the different types?
How are portions of a program disabled in demo versions?
Explain about the constants which help in debugging?
Explain what?s happening in the first constructor: public class c{ public c(string a) : this() {;}; public c() {;} } How is this construct useful?
Why ca not I do something like this?
What is void main ()?
long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
18 Answers Acropolis, HCL, Intel, TCS,
What is the scope of static variables in c language?