5.0020 How
many bytes of contiguous storage would be required for the array mydata given the
following structure template and declaration:
struct mystuff
{
char
classification, title[13];
int number1, number2, numbers[42];
float fnumb1, fnumb2[7];
double doub1[3];
struct mystuff * mypointer; };
int
main()
{
struct mystuff mydata[12];
Given: char classification, // 1-byte
title[13]; // 13-bytes
int number1, // 2-bytes
number2, // 2-bytes
numbers[42]; // 84-bytes
float fnumb1, // 4-bytes
fnumb2[7] // 28-bytes
double doubl[3]; //
24-bytes
struct mystuff *mypointer; // 4-bytes
162-bytes
Then: mydata[12]
=> 12 * 162 = 1,944 contiguous bytes of storage