Author Question: What will the following code display?int number = 23;cout (Read 104 times)

mckennatimberlake

  • Hero Member
  • *****
  • Posts: 559
What will the following code display?
int number = 23;
cout << "The number is " << "number" << endl;

The number is number
The number is23
The number is
The number is null
The number is 23


k.lashomb

  • Sr. Member
  • ****
  • Posts: 346
The number is number



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
 

Did you know?

The highest suicide rate in the United States is among people ages 65 years and older. Almost 15% of people in this age group commit suicide every year.

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?

Not getting enough sleep can greatly weaken the immune system. Lack of sleep makes you more likely to catch a cold, or more difficult to fight off an infection.

Did you know?

Illness; diuretics; laxative abuse; hot weather; exercise; sweating; caffeine; alcoholic beverages; starvation diets; inadequate carbohydrate consumption; and diets high in protein, salt, or fiber can cause people to become dehydrated.

Did you know?

The oldest recorded age was 122. Madame Jeanne Calment was born in France in 1875 and died in 1997. She was a vegetarian and loved olive oil, port wine, and chocolate.

For a complete list of videos, visit our video library