Quiz 1

CS18

20 pts., Feb. 21

  1. What is a reference variable?

    A variable which is an alias for another variable. A reference variable has no memory allocated. Many confused this with reference parameter, which is a horse of a different color.

  2. What ``operator'' is used to denote that a formal parameter is a reference parameter?

    &

  3. What is a pointer variable?

    A variable which is used to hold the address of another variable. More precisely, its rvalue is some other variable's lvalue.

  4. What ``operator'' is used to denote that a variable is a pointer variable?

    *



Thomas P. Kelliher
Mon Feb 26 08:00:40 EST 1996
Tom Kelliher