Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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 T
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote