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?

  1. A.

    struct node*

    {

    int data;

    node* link;

    };

  2. B.

    struct node

    {

    int data;

    struct node* link;

    };

  3. C.

    struct node

    {

    int data;

    node link;

    };

  4. D.

    struct node*

    {

    int data;

    struct node* link;

    };

Attempted by 1526 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…