Answer to Question #543 in C++ for kevin

Question #543
How to return an array from the function?
1
Expert's answer
2010-08-05T09:51:07-0400
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.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS
paypal