Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question : As you see the following example with exampleData, allocate myData to the memory and fill out the spaces to indicate how each data

Question : As you see the following example with exampleData, allocate myData to the memory and fill out the spaces to indicate how each data element is mapped. Assume that the memory is based on a 32-bit addressing system.

Please help to solve (fill in the box "A question you should solve") and please explain how the thing works. please use another method rather than the previous person answered this question. His/her answer was completely not what we are looking for.

image text in transcribed

--------------------

Example:

In a 32-bit addressing system, how many bytes does an instance from the following class?

struct nodeB {

char data_e;

double data_b;

char data_f;

short data_c;

char data_g;

short data_i;

char data_h;

int data_a;

nodeB *next;

}

image text in transcribed

An example: struct exampleData \{ char a; short b; l : A question you should solve: struct myData \} char a; long long int b; double c ; short d; char *e; float f; \begin{tabular}{|l|l|l|l|} \hline e & & & \\ \hline & & & \\ \hline data_b \\ \hline f & & data_c \\ \hline g & & data_i \\ \hline h & & \\ \hline data_a & \\ \hline *next \\ \hline \end{tabular} 36 bytes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions