Am studying passing by address: fx foo(&value) uses the argument address(&) to pass to function parameters. In the second example where printArray(array, 6) no address & used--its as if the array is passed without an & operator for address. Why is this the case?
When you pass an array, what actually gets passed is a pointer to the first element in the array. Typically we say the array parameter decays to a pointer, but what we call it doesn't matter. That's what happens. It's how C and C++ works.
Yes, all of what you said is true, thx. Narrow the question: how is this argument passed by address? Where is address info? Sorry to fuss over such an banal question.