Can a Structure contain a Pointer to itself?



Can a Structure contain a Pointer to itself?..

Answer / Pramod Kumar Bharti

Yes, a structure can contain a pointer to itself. This is known as a recursive data structure. For example: `struct Node { int data; struct Node* next; };`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are namespaces in c++?

1 Answers  


Is overriding possible in c++?

1 Answers  


Why c++ is so important?

1 Answers  


Is the declaration of a class its interface or its implementation?

1 Answers  


what do you mean by volatile variable?

1 Answers  


What is the use of endl?

1 Answers  


How static variables and local variablesare similar and dissimilar?

1 Answers  


What are the 4 types of library?

1 Answers  


What are register variables?

1 Answers  


What is size of a object of following class? class Foo { public: void foo(){} }

2 Answers   CA,


What is late binding c++?

1 Answers  


what is a reference variable in C++?

1 Answers  


Categories