Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

List some of the dynamic data structures in C?

0 Answers  


helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe

2 Answers  


Why #include is used in c language?

0 Answers  


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

0 Answers  


Explain how does flowchart help in writing a program?

0 Answers  


Is anything faster than c?

0 Answers  


What do you mean by keywords in c?

0 Answers  


What is the difference between a structure and a union?

2 Answers  


What are different types of operators?

0 Answers  


a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?

6 Answers   Geometric Software,


How to add two numbers with using function?

4 Answers  


Write a program to find factorial of a number using recursive function.

0 Answers   Global Logic, TCS,


Categories