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

What do the functions atoi(), itoa() and gcvt() do?

1137


c program for searching a student details among 10 student details

2041


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1091


What is variables in c?

984


What are the c keywords?

1146


What is echo in c programming?

964


What does == mean in texting?

1213


Write a program to reverse a string.

1025


Why do we need functions in c?

956


What are high level languages like C and FORTRAN also known as?

1106


In a header file whether functions are declared or defined?

1078


code for replace tabs with equivalent number of blanks

2100


How to get string length of given string in c?

1010


What is data structure in c language?

1056


Are pointers integers in c?

1029