Which of the following is the correct declaration of linked list?
Show answerHide answer
Correct answer: (B) Struct node { int data; struct node* link; }
Explanation
A self-referential structure has a pointer to its own type: struct node { int data; struct node *link; };. A member of type node itself would be infinitely recursive.