Ask Question

If the following statement were in a C+ + program, what would it do?

cout >> "I love oranges and apples";

+3
Answers (1)
  1. 15 January, 07:58
    0
    It will show compilation error like - no match for 'operator>>'

    Explanation:

    <> are input output stream operators which are used with different input output stream objects in C++. So <> operator is used to input or read some characters or integers from a file or console. Here input stream character is used with output stream object cout, which produces an error.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “If the following statement were in a C+ + program, what would it do? cout >> "I love oranges and apples"; ...” 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.
Search for Other Answers