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

Never take aspirin without food because it is likely to irritate your stomach. Never give aspirin to children under age 12. Overdoses of aspirin have the potential to cause deafness.

Did you know?

Methicillin-resistant Staphylococcus aureus or MRSA was discovered in 1961 in the United Kingdom. It if often referred to as a superbug. MRSA infections cause more deaths in the United States every year than AIDS.

Methicilli ...
Did you know?

Ether was used widely for surgeries but became less popular because of its flammability and its tendency to cause vomiting. In England, it was quickly replaced by chloroform, but this agent caused many deaths and lost popularity.

Did you know?

Women are two-thirds more likely than men to develop irritable bowel syndrome. This may be attributable to hormonal changes related to their menstrual cycles.

Did you know?

Cyanide works by making the human body unable to use oxygen.

For a complete list of videos, visit our video library