Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can a structure contain a pointer to itself?

contain pointer structure
0
Posted

Can a structure contain a pointer to itself?

0

See question 1.14. 2.4: What’s the best way of implementing opaque (abstract) data types in C? A: One good way is to use structure pointers which point to structure types which are not publicly defined. 2.6: I came across some code that declared a structure with the last member an array of one element, and then did some tricky allocation to make it act like the array had several elements.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123