Author Question: What will the following code output?int number = 22;int *var = &number;cout (Read 66 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 lipid bilayer is made of phospholipids. They are arranged in a double layer because one of their ends is attracted to water while the other is repelled by water.

Did you know?

The average office desk has 400 times more bacteria on it than a toilet.

Did you know?

Walt Disney helped combat malaria by making an animated film in 1943 called The Winged Scourge. This short film starred the seven dwarfs and taught children that mosquitos transmit malaria, which is a very bad disease. It advocated the killing of mosquitos to stop the disease.

Did you know?

In 2010, opiate painkllers, such as morphine, OxyContin®, and Vicodin®, were tied to almost 60% of drug overdose deaths.

Did you know?

Between 1999 and 2012, American adults with high total cholesterol decreased from 18.3% to 12.9%

For a complete list of videos, visit our video library