Author Question: What will the following code display? int number = 6;int x = 0;x = --number;cout (Read 85 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?

Elderly adults are living longer, and causes of death are shifting. At the same time, autopsy rates are at or near their lowest in history.

Did you know?

More than 150,000 Americans killed by cardiovascular disease are younger than the age of 65 years.

Did you know?

In 1885, the Lloyd Manufacturing Company of Albany, New York, promoted and sold "Cocaine Toothache Drops" at 15 cents per bottle! In 1914, the Harrison Narcotic Act brought the sale and distribution of this drug under federal control.

Did you know?

In most climates, 8 to 10 glasses of water per day is recommended for adults. The best indicator for adequate fluid intake is frequent, clear urination.

Did you know?

After a vasectomy, it takes about 12 ejaculations to clear out sperm that were already beyond the blocked area.

For a complete list of videos, visit our video library