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

The first-known contraceptive was crocodile dung, used in Egypt in 2000 BC. Condoms were also reportedly used, made of animal bladders or intestines.

Did you know?

Thyroid conditions may make getting pregnant impossible.

Did you know?

On average, someone in the United States has a stroke about every 40 seconds. This is about 795,000 people per year.

Did you know?

ACTH levels are normally highest in the early morning (between 6 and 8 A.M.) and lowest in the evening (between 6 and 11 P.M.). Therefore, a doctor who suspects abnormal levels looks for low ACTH in the morning and high ACTH in the evening.

Did you know?

In the United States, there is a birth every 8 seconds, according to the U.S. Census Bureau's Population Clock.

For a complete list of videos, visit our video library