logo

Crowdly

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

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

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%
More questions like this

Want instant access to all verified answers on moodle2425.up.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!