Given the following array declaration which is the value sto

Given the following array declaration, which is the value stored in the scores [2] [3] element? int scores [5] [5] = {0}

Solution

When a 2D array is declared and initialized as
int scores[5][5] = 0;
Then, all the values in the 2D array are set to 0.

Thus, value of scores[2][3] will also be 0.

Given the following array declaration, which is the value stored in the scores [2] [3] element? int scores [5] [5] = {0}SolutionWhen a 2D array is declared and

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site