CPSC 335 Quiz 8

Answer the following questions with a few sentences.

  1. What is a function pointer?
  2. What is a lambda function?
  3. What are the benefits of C++ allowing us to overload operators?
  4. What are the drawbacks of operator overloading (and the reasons why Java does not allow it)?
  5. What is the difference between a shallow and deep copy?