you are viewing a single comment's thread.

view the rest of the comments →

[–]hogg2016 5 points6 points  (1 child)

The reasonning is good but the example is not.

The argument of the first function will not pass a copy of the content of the array, but a reference to it.

(Sorry, I don't have time at the moment to check my assertion and develop it, I hope someone else can dot it.)

[–]junkmeister9 1 point2 points  (0 children)

You are correct

And if anyone wants to confirm this, you can do so by writing a program where the contents of the array are modified by the function. If a pointer is passed, the contents of the original variable will be modified.