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)
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Suppose you have a programmer-defined data type Data and want to overload the ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » 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.