self referencial structure

if a structure defines one or more pointer variable of same structure type as a data member of it. In other words, self reference structure points to itself. 
यदि एक स्ट्रक्चर जो स्वयं को पॉइंट करने वाले उसी प्रकार के एक या अधिक पॉइंटर वेरिएबल, अपने मेम्बर के रूप में रखता हो , सेल्फ रिफरेन्सीयल स्ट्रक्चर कहलाता है  

Syntax:-

struct structure_name{
datatype member1;
-------------------
-------------------
struct structure _ name *pointer _ name;
-------------------
-------------------
};

Example:- 

structure node {
int info ; 
struct node *link; 
};



Comments

Popular posts from this blog

C Language Topics in Hindi and English

Top High-Paying Tech Skills to Learn in 2025

Advanced C Programming Language IMP Questions for BSc/BA/BCom/BCA/BE/BTech/MSc/MCA (CS/IT) Students