Author Question: What will the following code output?int number = 22;int *var = &number;cout (Read 51 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?

The training of an anesthesiologist typically requires four years of college, 4 years of medical school, 1 year of internship, and 3 years of residency.

Did you know?

Side effects from substance abuse include nausea, dehydration, reduced productivitiy, and dependence. Though these effects usually worsen over time, the constant need for the substance often overcomes rational thinking.

Did you know?

During the twentieth century, a variant of the metric system was used in Russia and France in which the base unit of mass was the tonne. Instead of kilograms, this system used millitonnes (mt).

Did you know?

Disorders that may affect pharmacodynamics include genetic mutations, malnutrition, thyrotoxicosis, myasthenia gravis, Parkinson's disease, and certain forms of insulin-resistant diabetes mellitus.

Did you know?

All adults should have their cholesterol levels checked once every 5 years. During 2009–2010, 69.4% of Americans age 20 and older reported having their cholesterol checked within the last five years.

For a complete list of videos, visit our video library