Answer to Question #543 in C++ for kevin
How to return an array from the function?
The best way is to use a vector from the STL library. And then return it from the function. You can also return a pointer to a dynamically allocated array, but then you need to think about who will delete it.
No comments. Be first!