This preview shows page 1. Sign up to view the full content.
Unformatted text preview: • Main is an integer function that returns an integer Chapter 4.2 Call-By-Reference Parameters • Call-by-reference substitutes a variable (not its value) for the formal parameter • Want to differentiate between formal parameters and variables in main part of program • can mix call-by-value and call-by-reference parameters in function declaration by using (&) for reference • make sure you do not omit the & when writing a function...
View Full Document
This note was uploaded on 08/26/2009 for the course CS 140 taught by Professor Staff during the Fall '08 term at Southern Illinois University Edwardsville.
- Fall '08