Author Question: What will the following code display? int numbers[4] = {99, 87};cout (Read 131 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?

As the western states of America were settled, pioneers often had to drink rancid water from ponds and other sources. This often resulted in chronic diarrhea, causing many cases of dehydration and death that could have been avoided if clean water had been available.

Did you know?

Thyroid conditions may make getting pregnant impossible.

Did you know?

Cytomegalovirus affects nearly the same amount of newborns every year as Down syndrome.

Did you know?

Approximately 70% of expectant mothers report experiencing some symptoms of morning sickness during the first trimester of pregnancy.

Did you know?

Cyanide works by making the human body unable to use oxygen.

For a complete list of videos, visit our video library