Author Question: What will the following code display? int numbers[] = {99, 87, 66, 55, 101};for (int i = 1; i < 4; i++) cout (Read 27 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?

In ancient Rome, many of the richer people in the population had lead-induced gout. The reason for this is unclear. Lead poisoning has also been linked to madness.

Did you know?

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

Did you know?

Earwax has antimicrobial properties that reduce the viability of bacteria and fungus in the human ear.

Did you know?

There are immediate benefits of chiropractic adjustments that are visible via magnetic resonance imaging (MRI). It shows that spinal manipulation therapy is effective in decreasing pain and increasing the gaps between the vertebrae, reducing pressure that leads to pain.

Did you know?

Computer programs are available that crosscheck a new drug's possible trade name with all other trade names currently available. These programs detect dangerous similarities between names and alert the manufacturer of the drug.

For a complete list of videos, visit our video library