Suppose you have a programmer-defined data type Data and want to overload the << operator to output your data type to the screen in the form cout << dataToPrint; and allow cascaded function calls. The first line of the function definition would be:

a. ostream &operator<<( ostream &output, const Data &dataToPrint )
b. ostream operator<<( ostream &output, const Data &dataToPrint )
c. ostream &operator<<( const Data &dataToPrint, ostream &output )
d. ostream operator<<( const Data &dataToPrint, ostream &output )


a. ostream &operator<<( ostream &output, const Data &dataToPrint )

Computer Science & Information Technology

You might also like to view...

When configuring the background color of an element, the background color is applied to both the content and ______ areas.

a. border b. padding c. margin d. extra

Computer Science & Information Technology

Cloud computing is not as popular as developers first envisioned

Indicate whether the statement is true or false

Computer Science & Information Technology

Explain the difference between validation rule and validation text

What will be an ideal response?

Computer Science & Information Technology

The paste area is the target destination for data that has been cut or copied using the Clipboard

Indicate whether the statement is true or false

Computer Science & Information Technology