Question: Given that vectors are not automatically passed by reference to a function, which is the correct way to define a function getData that is supposed
Given that vectors are not automatically passed by reference to a function, which is the correct way to define a function getData that is supposed to populate a vector passed as a parameter, so the values remain in the vector after the function returns.
| A)void readData (vector |
| b) void readData(vector |
| c) void readData(&vector |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
