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

What functions are used for dynamic memory allocation in c language?

0 Answers  


How would you write qsort?

1 Answers  


How to add two numbers without using arithmetic operators?

18 Answers   College School Exams Tests, e track, Infosys, Pan Parag, Sapient, TCS,


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

0 Answers   HCL,


Can anyone help me with this please? Need to print the below values.. Thanks 1 1 2 1 2 3 1 2 3 4

3 Answers  






What is difference between scanf and gets?

0 Answers  


write a programe to find the factorial of given number using recursion

3 Answers  


All technical questions

0 Answers   TCS,


What the different types of arrays in c?

0 Answers  


struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?

1 Answers   Wipro,


write a program for fibonaci series by using while loop in c?

2 Answers  


In which layer of the network datastructure format change is done

0 Answers   Honeywell,


Categories