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 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](/WebImages/30/given-the-following-array-declaration-which-is-the-value-sto-1083147-1761569136-0.webp)