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

During pregnancy, a woman is more likely to experience bleeding gums and nosebleeds caused by hormonal changes that increase blood flow to the mouth and nose.

Did you know?

The most common childhood diseases include croup, chickenpox, ear infections, flu, pneumonia, ringworm, respiratory syncytial virus, scabies, head lice, and asthma.

Did you know?

Pubic lice (crabs) are usually spread through sexual contact. You cannot catch them by using a public toilet.

Did you know?

It is important to read food labels and choose foods with low cholesterol and saturated trans fat. You should limit saturated fat to no higher than 6% of daily calories.

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.

For a complete list of videos, visit our video library