Ask Question
30 April, 17:17

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

cout >> "I love oranges and apples";

+2
Answers (1)
  1. 30 April, 18:05
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers