5.0030. Given:
struct datatemplate
{ char group[3];
int groupclass;
struct datatemplate *next; };
char main()
{ struct datatemplate data[3] = {{“AB”,76,6741},{“X4”,322,6732},{“6T”,0,6750}};
If we issue the statement: printf(“%lu”, data)
And we receive the output: 6732
H. What would be printed by the statement: printf(“%d”, data[0].next->next->group);
From the above Declaration, we know that data[0].next is 6741, which is record 2 (offset 1).
At that base address (record 2, or offset 1), we find that the value of next is
6732, which is record 1 (offset 0). The value of group, for record 1, is
“AB”.