Author Question: What will the following code display? int numbers[] = {99, 87, 66, 55, 101};for (int i = 1; i < 4; i++) cout (Read 37 times)

jace

  • Hero Member
  • *****
  • Posts: 541
What will the following code display?
int numbers[] = {99, 87, 66, 55, 101};
for (int i = 1; i < 4; i++)
    cout << numbers[i] << "  ";

87  66  55  101
87  66  55  
99  87  66  55  101
◦ Nothing. This code has an error.



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
 

Did you know?

Elderly adults are at greatest risk of stroke and myocardial infarction and have the most to gain from prophylaxis. Patients ages 60 to 80 years with blood pressures above 160/90 mm Hg should benefit from antihypertensive treatment.

Did you know?

In the ancient and medieval periods, dysentery killed about ? of all babies before they reach 12 months of age. The disease was transferred through contaminated drinking water, because there was no way to adequately dispose of sewage, which contaminated the water.

Did you know?

In 1886, William Bates reported on the discovery of a substance produced by the adrenal gland that turned out to be epinephrine (adrenaline). In 1904, this drug was first artificially synthesized by Friedrich Stolz.

Did you know?

Allergies play a major part in the health of children. The most prevalent childhood allergies are milk, egg, soy, wheat, peanuts, tree nuts, and seafood.

Did you know?

Always store hazardous household chemicals in their original containers out of reach of children. These include bleach, paint, strippers and products containing turpentine, garden chemicals, oven cleaners, fondue fuels, nail polish, and nail polish remover.

For a complete list of videos, visit our video library