cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Can arrays return vectors?
Can arrays return vectors?
Jul 19, 2016 at 7:19pm UTC
Kbott
(31)
What does it mean to have function that takes as parameters an array of int and the size of the array, and returns a vector? are there good examples anyone knows of?
Jul 19, 2016 at 7:41pm UTC
Thomas1965
(4571)
The prototype of a function could look like this.
std::vector<
int
> getVector(
int
array[],
int
arraySize);
Topic archived. No new replies allowed.