Slide6Pass by value vs. by referencePassbyvalue:formalparametersandargumentsaredifferentvariablesidealdesirablebehavior(but notefficient some times)Pass by reference:they are the same variables,butdifferentnames!should carefully handled!
Slide 6 Pass by value: formal parameters and arguments are different variables. ideal desirable behavior (but not efficient some times) Pass by reference: they are the same variables, but different names! should carefully handled! Pass by value vs. by reference
Slide7Example 2Itispossibletousebothpassbyreferenceandpassbyvalueparameters inthe samefunction
Slide 7 Example 2 It is possible to use both pass by reference and pass by value parameters in the same function