Answers to Self-Review Exercises

  1. 10.1

    1. operator overloading.

    2. operator.

    3. assignment (=), address (&), comma (,).

    4. precedence, associativity, “arity.”

    5. ., ?:, .*, and ::.

    6. delete.

    7. new, pointer.

    8. s.

  2. 10.2 Operator >> is both the right-shift operator and the stream extraction operator, depending on its context. Operator << is both the left-shift operator and the stream insertion operator, depending on its context.

  3. 10.3 For operator overloading: It would be the name of a function that would provide an overloaded version of the / operator for a specific class.

  4. 10.4 True.

  5. 10.5 The precedence is identical.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset