Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

& before function arg in cpp

// pass 'x' by reference
void f1(int &x){
	...
}

// pass 'x' by value
void f2(int x){
	...
}
 
PREVIOUS NEXT
Tagged: #function #arg #cpp
ADD COMMENT
Topic
Name
4+1 =