Write the array declaration for a 2dimensional array called

Write the array declaration for a 2-dimensional array called scores that contains the integer quiz scores for a class of 20 students each of which have taken 10 quizzes. This array will be designed with the 20 students forming the rows of the array and the 10 quizzes forming the columns of the array.

Solution

// array declaration
   // this array stores the 10 scores of 20 students
   int scores[20][10];

Write the array declaration for a 2-dimensional array called scores that contains the integer quiz scores for a class of 20 students each of which have taken 10

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site