Author Question: What will the following code display? int number = 6;int x = 0;x = --number;cout (Read 24 times)

tth

  • Hero Member
  • *****
  • Posts: 579
What will the following code display?
int number = 6;
int x = 0;
x = --number;
cout << x << endl;

6
5
7
0



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question

tth

  • Hero Member
  • *****
  • Posts: 579

kjohnson

  • Sr. Member
  • ****
  • Posts: 330

 

Did you know?

There are more sensory neurons in the tongue than in any other part of the body.

Did you know?

Earwax has antimicrobial properties that reduce the viability of bacteria and fungus in the human ear.

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?

Sildenafil (Viagra®) has two actions that may be of consequence in patients with heart disease. It can lower the blood pressure, and it can interact with nitrates. It should never be used in patients who are taking nitrates.

Did you know?

It is believed that humans initially contracted crabs from gorillas about 3 million years ago from either sleeping in gorilla nests or eating the apes.

For a complete list of videos, visit our video library