Updated cpp.php
This commit is contained in:
@@ -359,7 +359,7 @@
|
||||
</ul>
|
||||
<li>Pass by reference</li>
|
||||
<ul>
|
||||
<li></li>
|
||||
<li>The address of the variable is directly associated with the variables for the local scope. That is, these local scope variables now hve access to the variables outside of the scope. This is done by using the ampersand character: <code>void my_func(int &var) {...}</code>. 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.</li>
|
||||
</ul>
|
||||
<li>Constant parameters</li>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user