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

The U.S. Pharmacopeia Medication Errors Reporting Program states that approximately 50% of all medication errors involve insulin.

Did you know?

The people with the highest levels of LDL are Mexican American males and non-Hispanic black females.

Did you know?

Approximately 15–25% of recognized pregnancies end in miscarriage. However, many miscarriages often occur before a woman even knows she is pregnant.

Did you know?

Autoimmune diseases occur when the immune system destroys its own healthy tissues. When this occurs, white blood cells cannot distinguish between pathogens and normal cells.

Did you know?

There are more nerve cells in one human brain than there are stars in the Milky Way.

For a complete list of videos, visit our video library