Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15821


How can I implement sets or arrays of bits?

1049


how many errors in c explain deply

2096


Why isnt any of this standardized in c?

1090


What is string constants?

1155


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1990


Explain how are portions of a program disabled in demo versions?

1124


Why ca not I do something like this?

1018


What was noalias and what ever happened to it?

1048


How many types of errors are there in c language? Explain

991


Describe static function with its usage?

1217


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1225


Why doesnt this code work?

1072


What is the purpose of realloc()?

1149


How can I access an I o board directly?

1093