what is self refrential structure

Answer Posted / silpa

if a structure tag is a datatype of a variable or data
member then it is known as a self referential structure.


for ex
template <class t>

struct node
{
t data;
node *link;//here link is a variable which contains data
type of structuretag ie node
}

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I change the size of the dynamically allocated array?

630


Can you please explain the difference between exit() and _exit() function?

585


Explain the concept and use of type void.

625


How do I round numbers?

595


Can a void pointer point to a function?

565






What is selection sort in c?

605


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2215


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

553


What is the role of this pointer?

545


write a program fibonacci series and palindrome program in c

630


When is a “switch” statement preferable over an “if” statement?

643


What is the difference between break and continue?

604


What does emoji p mean?

595


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1862


What is the significance of an algorithm to C programming?

594