if we use & while accepting the formal parameters then it will always pass the address right? (irrespective of type of vector)
like if we can use [] or * for passing address of array…do we have an alternative to & in passing a vector ?
if we use & while accepting the formal parameters then it will always pass the address right? (irrespective of type of vector)
like if we can use [] or * for passing address of array…do we have an alternative to & in passing a vector ?
…
somewhat it is related, i am asking about reference variable in c++
I don’t think so…
I checked my pointers note…I didn’t found anything called reference variable
pls read about it…
yeah its correct…
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.