I Unit DS
I Unit DS
UNIT I
G.LAVARAJU
Asst. Professor
Department of CSE
Aditya University
Self Referential Structures
Self Referential structures are those structures that
have one or more pointers which point to the same
type of structure, as their member.
Monday, February 17, G.LAVARAJU
2025
Program example:
struct node {
int data1;
char data2;
struct node* link;
};
int main()
{
struct node ob;
return 0;
}
Monday, February 17, G.LAVARAJU
2025
• Types of Self Referential Structures
Self Referential Structure with Single Link
Self Referential Structure with Multiple Links