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

About 60% of newborn infants in the United States are jaundiced; that is, they look yellow. Kernicterus is a form of brain damage caused by excessive jaundice. When babies begin to be affected by excessive jaundice and begin to have brain damage, they become excessively lethargic.

Did you know?

The horizontal fraction bar was introduced by the Arabs.

Did you know?

When blood is deoxygenated and flowing back to the heart through the veins, it is dark reddish-blue in color. Blood in the arteries that is oxygenated and flowing out to the body is bright red. Whereas arterial blood comes out in spurts, venous blood flows.

Did you know?

Human stomach acid is strong enough to dissolve small pieces of metal such as razor blades or staples.

Did you know?

Only one in 10 cancer deaths is caused by the primary tumor. The vast majority of cancer mortality is caused by cells breaking away from the main tumor and metastasizing to other parts of the body, such as the brain, bones, or liver.

For a complete list of videos, visit our video library