Question: 2. In C/C++ create the classes myData( and myDatal as shown at top of page 9 and in the example below. #include class myData {

 2. In C/C++ create the classes myData( and myDatal as shown

2. In C/C++ create the classes myData( and myDatal as shown at top of page 9 and in the example below. #include class myData { short int height; long int haircount; long int numFreckles; short int weight; }; class myDatal { short int height; short int weight; long int haircount; long int numFreckles; }; Use a main program like the one shown below to verify the actual size of the two classes. void main(void) { printf("size of myDatain bytes printf("size of myDatao in bytes = %d ", sizeof(myData()); = %d ", sizeof(myDatal)); }

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!