Author Question: What will the following code display?cout (Read 28 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?

Sildenafil (Viagra®) has two actions that may be of consequence in patients with heart disease. It can lower the blood pressure, and it can interact with nitrates. It should never be used in patients who are taking nitrates.

Did you know?

The calories found in one piece of cherry cheesecake could light a 60-watt light bulb for 1.5 hours.

Did you know?

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

Did you know?

The human body's pharmacokinetics are quite varied. Our hair holds onto drugs longer than our urine, blood, or saliva. For example, alcohol can be detected in the hair for up to 90 days after it was consumed. The same is true for marijuana, cocaine, ecstasy, heroin, methamphetamine, and nicotine.

Did you know?

Blood is approximately twice as thick as water because of the cells and other components found in it.

For a complete list of videos, visit our video library