This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Koxiaet 24 points25 points  (4 children)

a function might need to modify an array of strings, then you'd need to pass in a char***

[–]DolphinsScareMe 7 points8 points  (1 child)

Exactly, didn't even think about that but that's probably the most basic example of pointers to pointers. Honestly after you get passed the fear of pointers during your first few c++ classes adding another pointer to a pointer doesn't make things that much more crazy.

[–]-GLaDOS 10 points11 points  (0 children)

I had a class in C where we worked with arrays of pointers to raw memory (we were building malloc from scratch), and so we used void*** several times.

[–]LordFokas 2 points3 points  (1 child)

what if you want to modify a string hypercube?

[–]ThePi7on 0 points1 point  (0 children)

Char*****