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

what are register variables?what are the advantages of using register variables in c language?

2493


explain overloaded constrator © constractor

1664


Anyone have thesis paper about "Electrical Load Forecasting" . Or the web addresses where people usually upload their thesis paper except IEEE.

1388


Has anyone attended interviews in IITs for positions like Research fellowships/assistants? If yes, please share the experience about how complex the interview was, etc. etc.

1491


how the parting surface is selected in injection mould

1473






can any one send me the configuration of cisco 1841 router????/

1497


What are the main differences between the engines in jet fighters and the engines in jet airliners; which type of engine is the more efficient, and (qualitatively) why?

685


i possess a little knowledge of core java . so is it will be difficult for me to start advanced java?

1496


WAP in Java to print the format A B A B C D E D E

1593


i need to know abt renault nissan company and the rounds and type of questions asked by today

2969


what is the definition(body) of a default constructor in c++?

1463


Write a shell script to delete all files present in a directory “dir1”. Any error, if it occurs while carrying out this operation should be stored in a file errorlog

1591


hi, please send me "state bank of india", last 5 years question paper with answers to my mail id.

1615


How to create test case scenario?

1749


What are the differences between 1 dimensional RAM and 2 dimensional RAM?

2182