Q2. The following data structure is declared in a C/C++ program: struct DATA { int a; char b; short ci int d; char e; }
Posted: Fri Apr 29, 2022 7:14 am
Q2. The following data structure is declared in a C/C++ program: struct DATA { int a; char b; short ci int d; char e; } Given: int=4 bytes, char= 1 byte, short = 2 bytes, draw the most likely arrangement of data in memory for each of the following situations: Memory: 0 4 8 12 16 1 a) On an Intel Architecture computer running the Linux OS b) On an Intel Architecture computer running the MS Windows OS c) On a computer that imposes 4-byte word alignment