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

Pink eye is a term that refers to conjunctivitis, which is inflammation of the thin, clear membrane (conjunctiva) over the white part of the eye (sclera). It may be triggered by a virus, bacteria, or foreign body in the eye. Antibiotic eye drops alleviate bacterial conjunctivitis, and antihistamine allergy pills or eye drops help control allergic conjunctivitis symptoms.

Did you know?

There are 20 feet of blood vessels in each square inch of human skin.

Did you know?

Recent studies have shown that the number of medication errors increases in relation to the number of orders that are verified per pharmacist, per work shift.

Did you know?

Approximately 25% of all reported medication errors result from some kind of name confusion.

Did you know?

The familiar sounds of your heart are made by the heart's valves as they open and close.

For a complete list of videos, visit our video library