Passing An Array To A Function

 
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. 
  1. Question Attachments

    2 attachments —

Answer Detail

Get This Answer

Invite Tutor