CSCE 121 Chapter Notes - Chapter 13: Reserved Word, Function Prototype, In C

60 views6 pages

Document Summary

In c++, >> is used as a stream extraction operator and as a right shift operator. Operators can be overloaded either for objects of the user-defined types, or for a combination of objects of the. Ans: f user-defined type and objects of the built-in type. Ans: f name of the friend function in the function heading. The associativity of the operator = is from right to left. A friend function does not have access to the private data members of the class. The declaration of a friend function cannot be placed within the private part of the class. When writing the definition of a friend function, the name of the class and the scope resolution operator precede the. Most operator functions can either be member functions or nonmember functions of a class. Both parameters of the function to overload the operator << are reference parameters. Multiple choice operator <= is ____: overload

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents