Author Question: What will the following code display?cout (Read 42 times)

Zulu123

  • Hero Member
  • *****
  • Posts: 525
What will the following code display?
cout << "Roses " << "are red";
cout << "and " << "violets/n"
cout << "are" << "blue" << endl;

Roses are red and violets/nare blue
Roses are red
and violets
are blue

Roses are red and violets/n are blue
Roses are redand violets/nareblue


mirabriestensky

  • Sr. Member
  • ****
  • Posts: 325
Reply #1 on: May 22, 2019
Roses are redand violets/nareblue



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
 

Did you know?

According to the Migraine Research Foundation, migraines are the third most prevalent illness in the world. Women are most affected (18%), followed by children of both sexes (10%), and men (6%).

Did you know?

The average human gut is home to perhaps 500 to 1,000 different species of bacteria.

Did you know?

As many as 28% of hospitalized patients requiring mechanical ventilators to help them breathe (for more than 48 hours) will develop ventilator-associated pneumonia. Current therapy involves intravenous antibiotics, but new antibiotics that can be inhaled (and more directly treat the infection) are being developed.

Did you know?

Patients who have been on total parenteral nutrition for more than a few days may need to have foods gradually reintroduced to give the digestive tract time to start working again.

Did you know?

Pubic lice (crabs) are usually spread through sexual contact. You cannot catch them by using a public toilet.

For a complete list of videos, visit our video library