42) How should the following struct definition be changed?
Code:
struct list {
int data;
struct list next;
};
A)change line 1 to struct *list {
B)change line 1 to struct[] list {
C)change line 2 to int *data;
D)change line 2 to int **data;
E)None of the Above
I would pick E).
I think nothing is wrong with this struct. I might be wrong. "struct list next;" <---declares a second struct with the type 'list' within the first struct (which includes the same types of data), am I right?
Either that, or Something IS wrong with the formatting of "struct list next;" and options C) and D)........... do not correct these errors.
So, either way, im going with E.