write a method for an array in which it can display the
largest n next largest value.

Answer Posted / akshatgarg

well there are many methods one simple method i
Find the largest.
Find the smallest.
replace largest by smallest-1
then again search for the largest.

Now this time u will get the second largest number.

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it fine to write void main () or main () in c?

547


Explain what is the difference between a free-standing and a hosted environment?

635


What is the c value paradox and how is it explained?

574


In C, What is the #line used for?

1058


What is %d called in c?

761






Lists the benefits of c programming language?

598


What are the different data types in C?

729


What is const keyword in c?

749


What does calloc stand for?

651


When we use void main and int main?

588


What functions are in conio h?

658


Do you know the purpose of 'register' keyword?

642


Where define directive used?

607


Explain what are preprocessor directives?

627


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1328