Answers to Self-Review Exercises
-
operator overloading.
operator
.assignment (
=
), address (&
), comma (,
).precedence, associativity, “arity.”
.
,?:
,.*
, and::
.delete
.new
, pointer.s
.
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.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.10.4 True.
10.5 The precedence is identical.
Get C++ How to Program, 10/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.