Professional Documents
Culture Documents
11 Self Referencial Structure
11 Self Referencial Structure
Data member
and pointer NULL pointer (points to nothing)
Self-Referential Classes
struct node {
int data;
struct node *nextPtr;
}
nextPtr - points to an object of type node