Reference Parameters That Are Pointers
Sometimes a function needs to change a pointer parameter so that the pointer points to a new location.
Void allocate_doubles(double*& p, size_t& n)
cout << “How many doubles should I allocate?\n”;
cout << “Please type a positive integer\n”;
p = new double[n]; // Allocate the array of n doubles.