Creating Sample Node of Linked List in C


Introduction to Linked List || Advantages || Disadvantages
Creating Sample Node in C :

struct node
{
int data;
struct node *next;
};
  • This is sample node created in C which Exactly Looks like -

  • First part is data part and second part is Address.
  • Address - ” It Stores address of Whole Structure” , because many students assumed that It stored the address of “next data field”