write a program to print only the largest number between
elements of an 1-d array?

Answer Posted / manjesh

at first suppost the 1st element of array is max among them
. now we compare max to others starts fron 2nd element if
max>number then check to next number otherwise swap both
number . at last u will found maximun no. among them

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i opt cse branch in engineering.which subject i have choose in civil service preliminary examination

1520


Can one be shocked holding a wire carrying a very large current with a low voltage source?

1556


how i run the assembly language code

1370


Difference in NS and TIA type HRC fuses

4041


what is far pointer?

1468






hi... i just want to know that how could join the AAI with an B.E back ground??? please help me out.

1580


Write a function to print all the combinations of a string both uppercase and lowercase without altering the position of each letter.

1889


How many VLANs are supported on a single switch

1378


I am getting the following error,when I am running the script, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. My Script: Itemname=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Print Itemname Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").Select "Itemname" Any Help? Thanks, Uma

1752


what is the need of constractor explain with sutable progarmming example

1439


is it possible to get u.s visa with 55% in b-tech and 15 backlogs

1541


hai iam selected in po exam in allahabad bank . my interview date is 02-06-2009. so plese send me some sample question on my email. my email is nitinbikhani@yahoo.com

1380


could i know the selection pattern at hpcl, am an undergradute in chemical technology, but my sujects or course do not figure out antwhere on the lists.

1500


C++ PROGRAM FOR FIBONACCI SERIES USING COPY CONSTRUCTER

4813


How will a tester be sure that He’s covered the entire functionality in his Test case and not missed out anything?

1459