Hey, I need to make a function that returns an array. How would I do so? And how would I make a variable that gets all the values in that function? Thanks, you guys :)
glut
0
Light Poster
Recommended Answers
Jump to Post> I need to make a function that returns an array.
There is no way to return an array from a function (in either C or C++).
You can return a pointer to the first element of a dynamically allocated memory (which is messy). You could return a …
All 4 Replies
Onlineshade
-6
Posting Whiz
vijayan121
1,152
Posting Virtuoso
glut
0
Light Poster
sergent
52
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.