Hello all, I am having trouble with this assignment. I do not want anyone to do it for me just answer a couple of questions. This is the question:
Write and test a function to dynamically allocate an array of doubles – the function takes an int parameter for the number of elements to allocate, loads the array with double values, and returns a pointer to the array.
I have a few ?'s.
Do I let the user input the values into the array or is that possible?
If so, How do I do it?
And what does it mean by returning a pointer and how is this accomplished??