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

Elderly adults are living longer, and causes of death are shifting. At the same time, autopsy rates are at or near their lowest in history.

Did you know?

Nearly 31 million adults in America have a total cholesterol level that is more than 240 mg per dL.

Did you know?

Children with strabismus (crossed eyes) can be treated. They are not able to outgrow this condition on their own, but with help, it can be more easily corrected at a younger age. It is important for infants to have eye examinations as early as possible in their development and then another at age 2 years.

Did you know?

Illicit drug use costs the United States approximately $181 billion every year.

Did you know?

For pediatric patients, intravenous fluids are the most commonly cited products involved in medication errors that are reported to the USP.

For a complete list of videos, visit our video library