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

Why malloc is faster than calloc?

1060


How can you determine the maximum value that a numeric variable can hold?

1226


What is the purpose of sprintf?

1128


Are there any problems with performing mathematical operations on different variable types?

1036


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

1164


What are the advantages of using linked list for tree construction?

1078


Where is volatile variable stored?

1079


What is the use of define in c?

1053


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2736


What is the 'named constructor idiom'?

1083


What are the scope of static variables?

1176


Write a factorial program using C.

1070


What is %d called in c?

1222


Why do we use & in c?

992


What is meant by initialization and how we initialize a variable?

1044