Self-referential structures C

In structures, members can be of any data type. If we include a member in the structure, which is a pointer to the parent structure type, such a structure is called self-referential structure.
In general

struct tag
member 1;
member 2;
struct tag *name;

The structure of type tag contains a member, ‘name’ which is a pointer to structure of type tag . Thus tag is a self referential structure.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

C Topics