Ejjman
03-23-2012, 03:45 AM
(20 pts) Define the function sumOdd(int inArrayPR[], int arraySizePR)that returns the sum of the values in odd indexes inArrayPR[] or -999999 if there are no odd indexes. It is guaranteed that arraySizePR is positive and at least 1.
I don't get what an index is I guess. bubbles[0] = 1, bubbles[1] = 2, where the 0,1 is the index, isn't that correct? So the only way the -999999 is going to show up is if the array size is 1? Or do I misunderstand what an index is.
ALL help is needed as the next 5 questions deal with indexes...
I don't get what an index is I guess. bubbles[0] = 1, bubbles[1] = 2, where the 0,1 is the index, isn't that correct? So the only way the -999999 is going to show up is if the array size is 1? Or do I misunderstand what an index is.
ALL help is needed as the next 5 questions deal with indexes...