Find the second maximum in an array?

Answer Posted / v

This will fail if the input array is {-1,-2,-3}

Is This Answer Correct ?    17 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best c++ book for beginners?

565


What are vectors used for in c++?

614


What is the use of volatile variable?

590


Can I learn c++ without knowing c?

583


Which bit wise operator is suitable for checking whether a particular bit is on or off?

597






What is a multiset c++?

542


Why is standard template library used?

569


Can circle be called an ellipse?

626


Explain the scope of resolution operator.

623


What is a constructor and how is it called?

587


What is problem with overriding functions?

599


What is data structure in c++?

647


What are arithmetic operators?

528


What is the difference between public and private data members?

656


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

327