CPSC 335 Quiz 6

Answer the following questions with a few sentences.

  1. What's the difference between an "lvalue" and an "rvalue"?
  2. What does the & operator do?
  3. What does the * operator do?
  4. Why should one favor references over pointers where possible?
  5. How does one de-allocate memory in C++?