3 ms·
In the function signature, value is a reference. You can think of reference as being a pointer that points to a fixed location but with value semantics. So yo
by hardlianotion 2y ago
In the function signature, value is a reference. You can think of reference as being a pointer that points to a fixed location but with value semantics.
So you can dip value into the function call and the function can assign to it, as it could to data pointed to by a pointer.