explain how two dimensional arrays are


Explain how two dimensional arrays are represented in memory.

Representation of two-dimensional arrays in memory:-

Let grades be a 2-D array as grades [3][4]. The array will be shown in memory by a block of 3*4=12 sequential memory locations. It can be keep in two ways: - row major wise or column major wise. The first set of four array elements is located in memory, followed by the second set of four array elements, and so on.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: explain how two dimensional arrays are
Reference No:- TGS0282525

Expected delivery within 24 Hours