New course! Every coder should learn Generative AI!
Try a free lesson0
passing arguments
how to know to pass by a value or refrence?
1 Answer
0
By default, it is by value, if you add a & (like bellow), it is by reference
int function(int *& pointer);