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

Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

794


Explain container class.

689


What do you mean by static variables?

607


What is c++ vb?

616


How can I disable the "echo" feature?

612






What are the rules about using an underscore in a c++ identifier?

636


What are the uses of pointers?

583


Is there any function that can skip certain number of characters present in the input stream?

590


Is swift better than c++?

544


What does ctime() do?

619


Does c++ cost money?

584


What are pointer-to-members in C++? Give their syntax.

619


Explain virtual class and friend class.

605


How one would use switch in a program?

616


Why do we use constructor?

605