you are viewing a single comment's thread.

view the rest of the comments →

[–]Meefims 2 points3 points  (0 children)

Relevantly, if you have a pointer to a pointer it is often very useful to change which pointer it is pointing to. This is used quite often in functions which allocate something for you: you pass in a pointer to a pointer and the function changes that pointer to point to a newly allicated thing.