Question: Two-dimensional arrays can be initialized when they are declared. Given: int table[5][4]= {3,2,1,2,4,4,2,0,5,3,0,8,10,1,0,4,12,3,7,0}; Write the for loop to: (a) Find the sum of row 3

Two-dimensional arrays can be initialized when they are declared. Given:

int table[5][4]= {3,2,1,2,4,4,2,0,5,3,0,8,10,1,0,4,12,3,7,0};

Write the for loop to:

(a) Find the sum of row 3 of the array.

(b) Find the total of column 2 of the array.

(c) Find the total of each individual row.

(d) Find the total of each individual column.

(e) Initialize column 3 to 0.

(f) Illustrate the output by drawing the matrix for the table[5][4] after the process in (e). State all the indexes in the matrix.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!