It sounds like you are rote learning rather than actually understanding the reason behind doing that.Quote:
Originally Posted by transgalactic2
That would be true if arr is an int* and you wanted to change the pointer itself from within the function such that the change is reflected in the caller. Here you just want to pass a pointer to a pointer, so why take its address?Quote:
Originally Posted by transgalactic2

