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...

find second largest element in array w/o using sorting
techniques? use onle one for loop.

Answer Posted / tata indicom

What if the first element which you are assigning to max and
secondmax is itself the largest number in array.....
In such a case you will not be able to find second largest in
the array.....

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

1076


What is assert and when would I use it?

1012


Write programs for String Reversal & Palindrome check

1062


What is the translation phases used in c language?

1124


What is union in c?

1119


Does c have function or method?

1004


can we implement multi-threads in c.

1132


Define and explain about ! Operator?

1002


Can the “if” function be used in comparing strings?

1055


Add Two Numbers Without Using the Addition Operator

828


What is an endless loop?

1279


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1192


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2099


What are identifiers and keywords in c?

1106


What are the 4 types of programming language?

1133