Question: 2. (15 Points) Consider the C++ struct: Struct foo char a bool b; int c,+ double d: short e;* float f;v double , char *cptr

 2. (15 Points) Consider the C++ struct: Struct foo char a

2. (15 Points) Consider the C++ struct: Struct foo char a bool b; int c,+ double d: short e;* float f;v double , char *cptr float ett int X; 1. (5 Points) What is the size of foo struct?v 2. (5 Points) What is the memory size required? 3. (5 Points) What is the minimum memory size required if you re-arrange the struct?* Assume the following data type and sizes for the above struct in a 64-bit machine. Data size on 64-bit machine (bytes)- Data Tvpe Char Bool Int+ Long Double Short Float ointer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!