a. Both struct and class can be used to define abstract data types. Struct cannot be used to define abstract data types.
b. The following data structure and its object array, i.e. data p[3], are defined in a 64-bit operating system. What is the size of the array? If the starting address of the array is 100, what is the address of p[0].a? What is the address of p[0].c? And what is the address of p[2]?
struct data {
int a;
int* b;
double c;
};
data p[3];