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

More than 2,500 barbiturates have been synthesized. At the height of their popularity, about 50 were marketed for human use.

Did you know?

The oldest recorded age was 122. Madame Jeanne Calment was born in France in 1875 and died in 1997. She was a vegetarian and loved olive oil, port wine, and chocolate.

Did you know?

There are over 65,000 known species of protozoa. About 10,000 species are parasitic.

Did you know?

Medication errors are more common among seriously ill patients than with those with minor conditions.

Did you know?

The ratio of hydrogen atoms to oxygen in water (H2O) is 2:1.

For a complete list of videos, visit our video library