February 2020
Beginner to intermediate
616 pages
15h 16m
English
Whenever an array is defined, the memory allocated to it internally is a sequential memory. Now let's define a matrix of size 2 x 3, as shown in the following diagram. In that case, the matrix will be assigned six consecutive memory locations of two bytes each (see Figure 5.33). Why two bytes each? This is because an integer takes two bytes. This also means that if we define a matrix of the float type that takes four bytes, each allocated memory location would consist of four bytes:

In reality, the memory address is long and is in hex format; but for simplicity, we will take the memory addresses of integer type ...
Read now
Unlock full access