The & operator references the value.
int i;
int* p = &i;
In C++, the & at the function argument makes it a reference type (safe pointer).
void someFunction(int& refVal) {
[...]
}
The & operator references the value.
int i;
int* p = &i;
In C++, the & at the function argument makes it a reference type (safe pointer).
void someFunction(int& refVal) {
[...]
}