tiavien8652 tiavien8652
  • 20-01-2020
  • Computers and Technology
contestada

If the following statement were in a C++ program, what would it do?
cout >> "I love oranges and apples";

Respuesta :

flightbath flightbath
  • 22-01-2020

Answer:

It will show compilation error like - no match for 'operator>>'

Explanation:

<< and >> are input output stream operators which are used with different input output stream objects in C++. So << operator is used to output stream of characters to console or a file and >> 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.  

Answer Link

Otras preguntas

Using Escherichia coli and Entamoeba coli as examples, explain why the genus name must always be written out for the first use.
Many of the Declaration’s principles are broad and idealistic. Choose one to analyze, addressing the potential problems that could arise when it becomes impleme
What started WWII? What ended It?
Can someone please help me? I just need 18 and 20 please. I would appreciate it a lot if you would show me how to get the answer.
Archaeologists can determine the diets of ancient civilizations by measuring the ratio of carbon-13 to carbon-12 in bones found at burial sites. Large amounts o
can anyone tell me the answer
Please help ! I don’t understand :(
Mrs.sabino's garden has a perimeter of 20 square feet.what could be the lenghth of the sides? Draw and lable 2 possibilities
1. If 100% = 80, than 75% = ?
What did the Concordat of 1801 accomplish?