what is self refrential structure

Answers were Sorted based on User's Feedback



what is self refrential structure..

Answer / 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

what is self refrential structure..

Answer / vignesh1988i

whenever a structure is been pointed by the same structure
pointer which is the member of the same structure is called
as self referential structure....


thank u

Is This Answer Correct ?    7 Yes 0 No

what is self refrential structure..

Answer / ambar

whenever a structure calls itself during execution it is
known as a self referential structurte

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

class foo { public: static int func(const char*& p) const; }; This is illegal, why?

8 Answers   Google,


how write a addtion of two single dimensional array using of pointer in c language?

3 Answers   DRDO,


What is #line?

0 Answers  


Is there any restriction in how many arguments printf or scanf function can take? in which file in my c++ compiler i can see the code for implementation of these two functions??

4 Answers  


output for following code??? main() { int x=2,y,z; x*=3+2; printf("1.%d\n",x); x*=y=z=4; printf("2.%d %d %d\n",x,y,z); x=y==z; printf("3.%d\n",x); x==(y=z); printf("%d",x); }

2 Answers   Elysium,






what is the difference between arrays and linked list

26 Answers   MAHINDRA, Tech Mahindra, Wipro,


How many ways are there to swap two numbers without using temporary variable? Give the each logic.

9 Answers  


Explain how can I open a file so that other programs can update it at the same time?

0 Answers  


What are the advantages of using linked list for tree construction?

0 Answers  


Explain what is the difference between declaring a variable and defining a variable?

1 Answers  


what is void pointer?

1 Answers   Wipro,


What is const and volatile in c?

0 Answers  


Categories