When the left operand of a binary operation is a struct object:

A. the overloaded operator function for the binary operator must be written beneath the struct definition
B. the overloaded operator function for the binary operator should be written inside the struct definition
C. an overloaded operator function cannot be written for the binary operator
D. a compiler error occurs

B

Computer Science & Information Technology

You might also like to view...

How can you enter a page number in text that will be updated as the text flows to other pages?

What will be an ideal response?

Computer Science & Information Technology

A recursive solution can be preferable to an iterative solution because:

a. recursive method calls are faster than iterative looping b. recursive solutions may be easier to understand than iterative ones c. recursion uses less memory than iteration d. iteration should be avoided.

Computer Science & Information Technology