Top
/
C++
/
Arrays
/
Arrays in the heap
/
Answer-heap-6
Answer to Question heap-6
It can't. A sensible function would return not only the array but also its
logical size
. Since a function can only return one thing, you might make either the array or the size be an
out-parameter
.