2. The following two dimensional array of characters is three rows by two column
ID: 3906359 • Letter: 2
Question
2. The following two dimensional array of characters is three rows by two columns, and the first row is {W, N}:
W N
A S
C T
Show how the array elements would be organized in both column major ordering as well as row major ordering.
Column major ordering:
Address (in hex): 48 49 4A 4B 4C 4D
Contents: _ _ _ _ _ _
Row major ordering:
Address (in hex): D8 D9 DA DB DC DD
Contents: _ _ _ _ _ _
Explanation / Answer
In column major ordering we order by travelling through columns. In row major ordering we travel through rows.
Column major ordering:
Row major ordering:
Address (in hex): 48 49 4A 4B 4C 4D Contents: W A C N S TRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.