Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about pointers and arrays

Status
Not open for further replies.

Leroy1981

Programmer
Jul 22, 2002
46
0
0
US
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.




o__
,_.>/ _
(_)_\(_)_______
..speed is good
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top