Notes 9 29 2014 Default Passing Mechanism: Pass-By-Value or Pass-By-Copy Alternative Passing Mechanism Pass-By-Reference or Pass-By-Address ****This allows the function to modify a parameter 1. Does the function modify the parameter? 2. Does the calling need to know about the change? The Address-Of Operator (&) int x; cout << &x; Candy vendingMachine( int &money ); It's safe to assume that a pass-by-reference parameter is an output parameter Scope and Lifetime Scope is where a variable is visible in the code Global Variables are VERY bad A Global Variable is one that is declare outside of a scope