john2789
asked on
C Arrays (function, prototype, main program)
1. Write a function that will return the largest value in any integers array. (HINT: The function should accept 2 parameters)
--> void array(largest_value[], int n)
2. Write a prototype for the function in part 1.
--> int largest_value[int a, int b];
3. Write a main program that declares two arrays of different sizes and calls the function written in part 1.
"Two arrays"---> This means 2-dimentional Array? like, int a[][];?
--> void array(largest_value[], int n)
2. Write a prototype for the function in part 1.
--> int largest_value[int a, int b];
3. Write a main program that declares two arrays of different sizes and calls the function written in part 1.
"Two arrays"---> This means 2-dimentional Array? like, int a[][];?
Hi John2789,
Thanks for posting, but please go back and reread the terms of membership at this link:
https://www.experts-exchange.com/Programming/Programming_Languages/C/memberAgreement.jsp
You will discover that you agreed to not ask for anyone to do your homework for you and agreed that Experts would not do your homework.
However, your question has recently been discussed at the next link:
https://www.experts-exchange.com/questions/20792577/Most-frequently-occuring-characters.html
Please take note that the poster asked for guidance and help. The Experts here will gladly give you all the help that you ask for -- short of actually coding your homework.
Good Luck!
Kent
ASKER
Excuse me.... BUT!!! This is not a homework or any kind of assignments!!!
I just have been solving problems on my reference & practice books and I try to understand C Programming. If THIS is an assignment, I won't ask you!!!
I just have been solving problems on my reference & practice books and I try to understand C Programming. If THIS is an assignment, I won't ask you!!!
ASKER
I just want to know how I can write the function and prototype on this kind of problem. And I have a little confused if my book asked me about two array. What does this two arrays mean??
2-dimentional array or what?
Oh, yeah I read the policy of this website and I have understood.
2-dimentional array or what?
Oh, yeah I read the policy of this website and I have understood.
ASKER
No Help me? even thought I told you that THIS IS NOT AN ASSIGNMENT.
Hi John,
Please follow the second link that I gave. It offers a pretty good discussion of the same problem that you've posted. If you still have questions please feel free to ask them and we'll be glad to answer them.
But what you've posted to initiate this thread IS right out of the text book that quite a number of students are currently using. We can not post answers that we feel are most likely homework assignments.
Kent
ASKER
Well. HOW CAN I IMPROVE THAT THIS IS NOT AN ASSIGNMENT?
Umm... how about contacting to my mom...? Wait, Mom is going work tonight because she is a emergency doctor. Dad, he went to Iraq and didn't come back yet... Well letsee.. Oh! You can contact to MY Older brother. He knows what I have been studying C. His name is Jon and I think he is still in his office. His office number is 316-978-2187. ASK him!!!
I don't go to school, but I am interested in C programming because IT'S COOL.
What is 256? 256 MB on PC MEMORY? Where is the 256 coming from?
Umm... how about contacting to my mom...? Wait, Mom is going work tonight because she is a emergency doctor. Dad, he went to Iraq and didn't come back yet... Well letsee.. Oh! You can contact to MY Older brother. He knows what I have been studying C. His name is Jon and I think he is still in his office. His office number is 316-978-2187. ASK him!!!
I don't go to school, but I am interested in C programming because IT'S COOL.
What is 256? 256 MB on PC MEMORY? Where is the 256 coming from?
There are 256 unique codes in the ASCII character set. This makes sense -- a byte is 8 bits and 2**8 = 256.
So if you start with an array that is big enough to be indexed by any 8-bit value, you have an array of 256 elements.
Kent
ASKER
soo, what are differences from the problem I posted today and this one?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
but I believe that this is homework and we're not here to do that.
If you want, you can try to start thinking it and we'll help you, but we won't do homework for you.
Cheers!
Tincho