logo

Crowdly

Consider (as usual in 64-bit machines) that values of type double are represente...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Consider (as usual in 64-bit machines) that values of type double are represented using 8 bytes in memory and struct types data1 and data2

defined as follows.

struct data1 {

double x;

double y;

};

struct data2 {

data1 a;

data1 b;

data1 c;

};

Assuming that no padding bytes are necessary in the representation of data1 and data2

what is the output of

cout << sizeof(data1) << ' ' << sizeof(data2);
100%
0%
0%
0%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle2425.up.pt?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!