Hi
We know that the variables when making a function call are copied using assignment, i.e. in
we haveCode:void test(int a) { cout << a; } int main() { test(3) return 0; }
But what if I had chosen to call test using a reference? How would the reference be passed to the function test? I'm thinking of the fact that references need to be initialized.Code:int a; a=3;
Best,
Niles.