Answers for "c++ passing vector to function"

C++
0

c++ passing vector to function

// Pass by value
void print(std::vector<int> arr) { }

// Pass by reference
void print(std::vector<int>& arr) { }
Posted by: Guest on January-16-2021

Code answers related to "c++ passing vector to function"

Browse Popular Code Answers by Language