diff --git a/notes/cpp.php b/notes/cpp.php index 9e6de9f..9872af1 100644 --- a/notes/cpp.php +++ b/notes/cpp.php @@ -359,11 +359,11 @@
void my_func(int &var) {...}. Essentially, these new variables contain no new data and do not take up any more memory that was already there. No matter is created, only another name for a variable which is removed after the function completes execution.void my_func(int &var) {...}. Essentially, these new variables contain no new data and do not take up any more memory that was already there. No matter is created, only another name for a variable which is removed after the function completes execution. The pass-by-reference parameters are called reference parameters and the arguments are called reference arguments.const type for the parameters. The constant parameter can be either pass-by-value or a pass-by-reference type as well.