answersLogoWhite

0

How do you use self referential structure?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

Like any other structure. Example:

typedef struct Example {
struct Example *next;
} Example;

Example e1, e2;
e1.next= &e2;
e2.next= NULL;

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you use self referential structure?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is self referential structure?

It is exactly what it sounds like: a structure which contains a reference to itself. A common occurrence of this is in a structure which describes a node for a linked list. Each node needs a reference to the next node in the chain. struct linked_list_node { int data; struct linked_list_node *next; // <- self reference };


What is self referential function in c plus plus?

A self-referential function in C++, or in any other supporting language, is a recursive function.


What a structure must include if it is a self -referential structure in C programming?

Pointer, eg: struct Person { struct Person *father, *mother, *spouse; int age; char *name; };


Do you ever have an answer?

As an example in self-referential paradox, the answer is NO!


What does the suffix meta mean?

The suffix "meta" means beyond, transcending, or self-referential. It is often used to indicate something that is of a higher level or involving a critical examination of its own structure or underlying assumptions.


What is referential class in c?

C is not an object-oriented language so it doesn't have classes of have any kind, it only has types. However, a self-referential type is simply a type that refers to itself. Nodes in a linked list are self-referential types because they hold a reference (a pointer) to the next node in the list: typedef struct node {node* next;/* ... */};


What is The tendency to process efficiently and remember well information related to oneself is called the?

self-referential encoding effect.


What is contextual criticism?

A form of criticism which views the literary text as a self-contained verbal structure. Akin to the New_Criticism, contextualism holds that a work of art generates self-referential meanings within its own internal and autonomous context. Its proponents include Cleanth Brooks, Eliseo Vivas, and Murray Krieger.


What does that's so meta mean?

"That's so meta" refers to something that is self-referential or self-aware in a clever or ironic way. It often involves commenting on the nature of the thing itself within the thing itself.


What is the difference between a shell structure and a frame structure?

A shell structure supports its self and a frame structure does not support it self.


How do you use foreign key in to oracle?

the foreign key referential between two tables.


What is autopoiesis?

Autopoiesis is a term coined by biologists Humberto Maturana and Francisco Varela to describe the self-organizing nature of living systems. It refers to the ability of an organism to continuously self-produce and self-maintain its organization through interactions with its environment. In essence, autopoietic systems are self-referential and self-sustaining.