Which of the following is the correct declaration of linked list?
KVS PGT Computer Science · 2018 · PGT Computer Science
Which of the following is the correct declaration of linked list?
- A.
struct node*
{
int data;
node* link;
};
- B.
struct node
{
int data;
struct node* link;
};
- C.
struct node
{
int data;
node link;
};
- D.
struct node*
{
int data;
struct node* link;
};
Attempted by 1526 students.
Sign up free to check your answer
Sign up freeLoading lesson…