Self Referential Structure

Preview

Self Referential Structure

It is a special type of structure which contains a member of its own type. The member of its own type is actually a pointer variable of same structure in which it is declared. Self referential structure is basically used for implementation of a linked list in C language.



Example

struct node

{

int rollno;

struct node *next;

};


Best Books of C





Lesson tags: self referential structure, self referential structure in c
Back to: C Programming Language