Author Question: What will the following code output?int number = 22;int *var = &number;cout (Read 45 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 1835 it was discovered that a disease of silkworms known as muscardine could be transferred from one silkworm to another, and was caused by a fungus.

Did you know?

Earwax has antimicrobial properties that reduce the viability of bacteria and fungus in the human ear.

Did you know?

HIV testing reach is still limited. An estimated 40% of people with HIV (more than 14 million) remain undiagnosed and do not know their infection status.

Did you know?

Illicit drug use costs the United States approximately $181 billion every year.

Did you know?

Street names for barbiturates include reds, red devils, yellow jackets, blue heavens, Christmas trees, and rainbows. They are commonly referred to as downers.

For a complete list of videos, visit our video library