Note: I am using the g++ compiler (which is I hear is pretty good and supposed to be pretty close to the standard).
So, I think I've learned that passing a pointer-to-an-array or passing the actual array as an argument to another function always results in the passing of a pointer-to-that-array.
Similarly, I think I've learned that passing a pointer-to-a-function or passing the actual function as an argument to another function always results in the passing of a pointer-to-that-function.
Is it possible to pass a copy of the array (without explicitly making a copy of the array inside the called function)?
Is it possible to pass a copy of the function (without explicitly making a copy of the function inside the called function)? Is that ever useful? What does that even mean?
I understand the difference between passing an array or its copy; what is the difference between passing a function or its copy?