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

Inotropic therapy does not have a role in the treatment of most heart failure patients. These drugs can make patients feel and function better but usually do not lengthen the predicted length of their lives.

Did you know?

Medications that are definitely not safe to take when breastfeeding include radioactive drugs, antimetabolites, some cancer (chemotherapy) agents, bromocriptine, ergotamine, methotrexate, and cyclosporine.

Did you know?

A recent study has found that following a diet rich in berries may slow down the aging process of the brain. This diet apparently helps to keep dopamine levels much higher than are seen in normal individuals who do not eat berries as a regular part of their diet as they enter their later years.

Did you know?

Nitroglycerin is used to alleviate various heart-related conditions, and it is also the chief component of dynamite (but mixed in a solid clay base to stabilize it).

Did you know?

The newest statin drug, rosuvastatin, has been called a superstatin because it appears to reduce LDL cholesterol to a greater degree than the other approved statin drugs.

For a complete list of videos, visit our video library