Passing An Array To A Function

jimmymike

 

Instructions

In this example, you use an array called scores, and we pass the  array to a function called printScores(). This function loops through  the array elements, and prints them. As before, the program prints the  average of the grades.

Here is the code:

Don't forget to use return 0; in the main() function. 

    • 6 years ago
    • 3
    Answer(1)

    Purchase the answer to view it

    • sixth.cpp