By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,819 Members | 1,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,819 IT Pros & Developers. It's quick & easy.

Funtion to help finding the Largest Value

P: 2
Who can help solve this problem???

Finding the Largest Value

(a) write a function, largest(), that returns the largest value in a signed integer array. The array and its size are passed as arguments.

(b)Write a main program that inputs MAX values from the keyboard into a signed
integer array, array, and points, using largest(), the largest value to the screen.
Sep 30 '06 #1
Share this Question
Share on Google+
3 Replies


P: 14
this sounds more like a homework but here is your code
c ++

Code removed per posting guidelines
////////////////////////////////////////////////////////////////////////////////
at b) try to be more specific && give an example


and try to solve your homework allone
Sep 30 '06 #2

P: 23
If you're so adamant about him doing his homework alone, you could have just declined the help. On the other hand, if you're looking to be a know-it-all, then don't be so critical of someone else...
Sep 30 '06 #3

sicarie
Expert Mod 2.5K+
P: 4,677
Who can help solve this problem???

Finding the Largest Value

(a) write a function, largest(), that returns the largest value in a signed integer array. The array and its size are passed as arguments.

(b)Write a main program that inputs MAX values from the keyboard into a signed
integer array, array, and points, using largest(), the largest value to the screen.
So what have you done on this? Where are you stuck? I'd start with the prototype of largest() - what is it passed, what does it return and how do you show that?
Dec 23 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.