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

People with alcoholism are at a much greater risk of malnutrition than are other people and usually exhibit low levels of most vitamins (especially folic acid). This is because alcohol often takes the place of 50% of their daily intake of calories, with little nutritional value contained in it.

Did you know?

About 60% of newborn infants in the United States are jaundiced; that is, they look yellow. Kernicterus is a form of brain damage caused by excessive jaundice. When babies begin to be affected by excessive jaundice and begin to have brain damage, they become excessively lethargic.

Did you know?

The Centers for Disease Control and Prevention (CDC) was originally known as the Communicable Disease Center, which was formed to fight malaria. It was originally headquartered in Atlanta, Georgia, since the Southern states faced the worst threat from malaria.

Did you know?

IgA antibodies protect body surfaces exposed to outside foreign substances. IgG antibodies are found in all body fluids. IgM antibodies are the first type of antibody made in response to an infection. IgE antibody levels are often high in people with allergies. IgD antibodies are found in tissues lining the abdomen and chest.

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