I have a function like:
function(double* numbers)
I know that if I know the size of the numbers array, I can then do
double* numbers = new double[size];
function(numbers)
This will return the value in numbers
correctly, however, now I don't know the size of numbers
, I still want to use function function
, which is a third party library function which I don't want to change, is there a way to get the array out without knowing the size of array?