-- Nov 2 In-Class Exercise Thread
3 * 4 = 12 elements
12 * 4 bytes = 48 bytes for all 12 ints
to write into memory, one single dimension array will be created with size 12.
the first row will be written in the first 4 elements, the next row written in the
second 4 elements, and the last row written in the last 4 elements, which results
in { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }.
They would then be written in this order into memory.
For example, the 9th entry would look like
0000 0000 0000 0000 0000 0000 0000 1000
(
Edited: 2021-11-03)
3 * 4 = 12 elements
12 * 4 bytes = 48 bytes for all 12 ints
to write into memory, one single dimension array will be created with size 12.
the first row will be written in the first 4 elements, the next row written in the
second 4 elements, and the last row written in the last 4 elements, which results
in { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }.
They would then be written in this order into memory.
For example, the 9th entry would look like
0000 0000 0000 0000 0000 0000 0000 1000