Why should the stream operators and gtgt be overloaded as


1. Why can't ** be overloaded as an exponentiation operator?

2. Why should the stream operators and >> be overloaded as friend functions?

3. Why should the arithmetic operators +, -, *, and / be overloaded as friend functions?

4. How is the overloaded pre-increment operator defintion distinguished from that of the over- loaded post-increment operator?

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Why should the stream operators and gtgt be overloaded as
Reference No:- TGS01186217

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)