The received pointer should be used to print all items in the array.
I tried:
Code: Select all
function returnPtr() as integer
dim outarr(...) as double = {10.1,20.2,30.3}
return @outarr
end function
dim newarr(...) as double = returnPtr
for i as integer = 0 to ubound(newarr)
print newarr(i)
next
I did not try it since I do not want to risk my system with code I do not understand.
What is correct code for this purpose?
Thanks for your help.