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

Persons who overdose with cardiac glycosides have a better chance of overall survival if they can survive the first 24 hours after the overdose.

Did you know?

Many medications that are used to treat infertility are injected subcutaneously. This is easy to do using the anterior abdomen as the site of injection but avoiding the area directly around the belly button.

Did you know?

Critical care patients are twice as likely to receive the wrong medication. Of these errors, 20% are life-threatening, and 42% require additional life-sustaining treatments.

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.

Did you know?

More than 34,000 trademarked medication names and more than 10,000 generic medication names are in use in the United States.

For a complete list of videos, visit our video library