Question: Write a C program that fills a 5 by 5 2d array with consecutive numbers, in row major fashion. An example of the array is
Write a C program that fills a 5 by 5 2d array with consecutive numbers, in row major\ fashion. An example of the array is below:\ 0 1 2 3 4\ 5 6 7 8 9\ 10 11 12 13 14\ 15 16 17 18 19\ 20 21 22 23 24\ a. Use conventional array accessing methods to create a 5 by 5 array.\ b. Use conventional array accessing methods to display the array.\ c. Use the pointer/addressing methods discussed in the chapter to display the\ array.\ d. Use the pointer/addressing methods discussed in the chapter to fill the array.\ e. Now load the matrix so that consecutive number go down the columns\ (similar to column major fashion) using pointer/addressing methods as\ discussed in the chapter.\
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
