I got my quiz back, which is about arrays, from my computer programming class, but there's a problem I got wrong. I don't want to ask my professor for help because he's a boring but moody lecturer who can't teach.
Given the following function prototypes:
CODE
void DoThis (float[][9]);
int iGetIt (float);
"Using integer variable iKnow, write the statement that would appear in main() that calls iGetIt(), dpassing it the single array element of the afPrice array that is in the upper left hand corner of the matrix:"
This is what I wrote down as my answer:
CODE
iGetIt (afPrice[0][0]);
return (iKnow);
iKnow = iGetIt(afPrice[0][0]);
I got the last line, iKnow = iGetIt(afPrice[0][0]);, incorrect. Can anyone explain why, what is the correct answer, and how can I obtain it?
This post has been edited by !!!: 21 May, 2008 - 11:32 PM