Argument-Passing by Reference
Unlike what we did in , we are NOT passing the value of 'a' to MyFunction( ), but rather a pointer to the location in memory where 'a' is stored.
This enables us to change the value of 'a' that is in main( )'s workspace from within MyFunction( ).
illustrates this.
Back to Index