Author Question: What will the following code output?int number = 22;int *var = &number;cout (Read 53 times)

dalyningkenk

  • Hero Member
  • *****
  • Posts: 598
What will the following code output?
int number = 22;
int *var = &number;
cout << var << endl;

◦ the address of number
◦ an asterisk followed by 22
22
◦ an asterisk followed by the address of number


cadimas

  • Sr. Member
  • ****
  • Posts: 362
the address of number



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question

dalyningkenk

  • Hero Member
  • *****
  • Posts: 598

cadimas

  • Sr. Member
  • ****
  • Posts: 362
Great! Please up vote :D



 

Did you know?

Asthma occurs in one in 11 children and in one in 12 adults. African Americans and Latinos have a higher risk for developing asthma than other groups.

Did you know?

Hyperthyroidism leads to an increased rate of metabolism and affects about 1% of women but only 0.1% of men. For most people, this increased metabolic rate causes the thyroid gland to become enlarged (known as a goiter).

Did you know?

Vital signs (blood pressure, temperature, pulse rate, respiration rate) should be taken before any drug administration. Patients should be informed not to use tobacco or caffeine at least 30 minutes before their appointment.

Did you know?

Automated pill dispensing systems have alarms to alert patients when the correct dosing time has arrived. Most systems work with many varieties of medications, so patients who are taking a variety of drugs can still be in control of their dose regimen.

Did you know?

Asthma-like symptoms were first recorded about 3,500 years ago in Egypt. The first manuscript specifically written about asthma was in the year 1190, describing a condition characterized by sudden breathlessness. The treatments listed in this manuscript include chicken soup, herbs, and sexual abstinence.

For a complete list of videos, visit our video library