0
Why pointers?
is it more efficient to pass references instead of values to functions?
2 Réponses
+ 2
For an integer or double value, it does not make any difference, but if you are passing a matrix with 1000x1000 values, then it is way more advisable to pass by reference or use move semantics.