Author Question: What will the following code display? int numbers[4] = {99, 87};cout (Read 172 times)

Coya19@aol.com

  • Hero Member
  • *****
  • Posts: 601
What will the following code display?
int numbers[4] = {99, 87};
cout << numbers[3] << endl;

0
87
99
◦ garbage
◦ This code will not compile


mcabuhat

  • Sr. Member
  • ****
  • Posts: 344

Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question

Coya19@aol.com

  • Hero Member
  • *****
  • Posts: 601

mcabuhat

  • Sr. Member
  • ****
  • Posts: 344

 

Did you know?

Studies show that systolic blood pressure can be significantly lowered by taking statins. In fact, the higher the patient's baseline blood pressure, the greater the effect of statins on his or her blood pressure.

Did you know?

Each year in the United States, there are approximately six million pregnancies. This means that at any one time, about 4% of women in the United States are pregnant.

Did you know?

Although puberty usually occurs in the early teenage years, the world's youngest parents were two Chinese children who had their first baby when they were 8 and 9 years of age.

Did you know?

The calories found in one piece of cherry cheesecake could light a 60-watt light bulb for 1.5 hours.

Did you know?

The B-complex vitamins and vitamin C are not stored in the body and must be replaced each day.

For a complete list of videos, visit our video library