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

Cytomegalovirus affects nearly the same amount of newborns every year as Down syndrome.

Did you know?

For about 100 years, scientists thought that peptic ulcers were caused by stress, spicy food, and alcohol. Later, researchers added stomach acid to the list of causes and began treating ulcers with antacids. Now it is known that peptic ulcers are predominantly caused by Helicobacter pylori, a spiral-shaped bacterium that normally exist in the stomach.

Did you know?

More than 2,500 barbiturates have been synthesized. At the height of their popularity, about 50 were marketed for human use.

Did you know?

Your skin wrinkles if you stay in the bathtub a long time because the outermost layer of skin (which consists of dead keratin) swells when it absorbs water. It is tightly attached to the skin below it, so it compensates for the increased area by wrinkling. This happens to the hands and feet because they have the thickest layer of dead keratin cells.

Did you know?

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

For a complete list of videos, visit our video library