Proper way to pass dynamic arrays to other functions
Actually, the two first ideas pass the array by address and the third passes the array by reference. You can devise a little test to check this: The output of this test is If a parameter is passed by value, it cannot be modified inside a function because the modifications will stay in the scope of the function. In … Read more