Question: Write a function that is passed in a 4 times 5 array of integers (a 2D array with 4 rows and 5 columns of integers)

Write a function that is passed in a 4 times 5 array of integers (a 2D array with 4 rows and 5 columns of integers) as a parameter variable. This function should shift all of the rows up by one, with the first row's values moved into the last row. For example, if the 2D array looked this: 00000 11111 22222 33333 then it would look like this after a call to your function: 11111 22222 33333 00000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
