MC logo

Bits and Pieces

  Practice Questions

  1. Why is the C++ iostream package superior to C printf?

  2. What does const in void f(const Fred &z) mean?

  3. What does const in const Fred & f(int n) mean?

  4. What does const in void f(Fred &z) const { ... } mean?

  5. Given int n, what is &n?

  6. Given int & n what is n?

  7. What is the symbol ::, and when is it used?

Answer Access Control>>