PROGRAMMING POINTERS, LESSON 7

 

 

 

Syntax/correctness issues

 

 

7-1       When declaring multiple reference parameters, each value must have its own & symbol.  The following is not valid:

 

            int  doSomething  (int &x, y, z);         //  syntax error

 

7-2       A reference variable must be initialized when it is declared.

 

7-3       A reference variable cannot be reassigned to another variable once it has been initialized.