Pass a vector by reference C++
Firstly you need to learn the differences between references and pointers and then the difference between pass-by-reference and pass-by-pointer. A function prototype of the form: expects a function call of the type: Whereas, a prototype of the form: expects a function call of the type: Using the same logic, if you wish to pass the vector by reference, … Read more