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

How can I change the size of the dynamically allocated array?

1093


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

2074


Are pointers integers in c?

1029


What does sizeof return c?

1012


What is the meaning of 2d in c?

1064


Explain about the functions strcat() and strcmp()?

990


How can you find the exact size of a data type in c?

952


Explain 'far' and 'near' pointers in c.

1082


What is use of pointer?

1011


What is identifiers in c with examples?

1118


What is signed and unsigned?

1014


How do I round numbers?

958


What are 'near' and 'far' pointers?

983


What is volatile variable in c?

1054


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

1168