I have a tree component that keeps all its branches in one
array and each branch contains pointers to its children in the array. But what if I insert a branch into the array do I have to reset all pointers that point to branches higher
in the array?
Not sure what you mean, but as I understand pointers (and if you used them right) they should happily keep pointing where they were, and nothing changes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.