Question: 1 ) Declare a 2 dimensional array of a suitable size through malloc ( ) statement [ 1 0 points ] Note: Make the array

1) Declare a 2 dimensional array of a suitable size through malloc() statement[10 points]
Note: Make the array a large size say 4096 x 1024 and use static declaration
2) Write a C program to write data into this array[10 points]
3) You should read and process data from this array in 2 different ways
4) First do a row major access using pointers[20 point]
5) Second do a column major access using pointers[20 points]
Note: Not using pointers as in the test.c program will result in 10 points each only for 4/5
6) Record and display the times needed for both types of accesses [10 points +10 points (each)]
7) Ensure all records are read or accessed[10 points]
8) Provide a writeup that consists of times differ (if they do) Writeup should include
a. Size of your array [5 points]
Observation and Explanation of your observation regarding

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 Programming Questions!