& before function arg in cpp code example
Example: & before function arg in cpp
// pass 'x' by reference
void f1(int &x){
...
}
// pass 'x' by value
void f2(int x){
...
}
// pass 'x' by reference
void f1(int &x){
...
}
// pass 'x' by value
void f2(int x){
...
}