Find the second maximum in an array?

Answer Posted / jagdish patel

it's simple just sort an array in descending and then
print 2nd element of an array!!!!

Is This Answer Correct ?    27 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain dangling pointer.

856


What are formatting flags in ios class?

802


Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).

799


What is c++ stringstream?

836


How can I disable the "echo" feature?

807






which of the following is not an secondary constant a) array b) real c) union

1504


What are multiple inheritances (virtual inheritance)?

781


What is abstract class in c++?

769


Write a program to interchange 2 variables without using the third one.

782


Is swift better than c++?

714


When is the copy constructor called?

845


What does #define mean in c++?

894


What happens when you make call 'delete this;'?

783


What is &x in c++?

752


Is java the same as c++?

723