Question: Q5 Create a function that accepts a two dimensional array of integers and displays Row by row ( fix row - iterate thru the columns)

Q5

Create a function that accepts a two dimensional array of integers and displays

Row by row ( fix row - iterate thru the columns)

b) column by column (fix column iterate thru the rows)

Lets assume the elements of the array 3 X 4 is

11 12 13 14

21 22 23 24

31 32 33 34

Example output for a)

11 12 13 14 *(these number are from row 1)

21 22 23 24 *(these number are from row 2)

31 32 33 34

Example output for b)

11 21 31 *(these number are from column 1)

12 22 32 *(these number are from column 2)

13 23 33

14 24 34

*Note : This is information for you .. do not display this as part of your output

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!