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

wrbasek0

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

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



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
 

Did you know?

In most cases, kidneys can recover from almost complete loss of function, such as in acute kidney (renal) failure.

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?

Drugs are in development that may cure asthma and hay fever once and for all. They target leukotrienes, which are known to cause tightening of the air passages in the lungs and increase mucus productions in nasal passages.

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?

Oliver Wendell Holmes is credited with introducing the words "anesthesia" and "anesthetic" into the English language in 1846.

For a complete list of videos, visit our video library