Given a two-dimensional array of integers named q, with 2 rows and 4 columns, write some code that puts a zero in every element of q.

LANGUAGE: C++

CHALLENGE:

Given a two-dimensional array of integers named q, with 2 rows and 4 columns, write some code that puts a zero in every element of q.
Declare any variables needed to help you.

SOLUTION:

for (int i = 0; i < 2; i++) 
{ 
    for (int j = 0; j < 4; j++) 
    q[i][j] = 0;
}