Author Question: Assuming ptr is a pointer variable, what will the following statement output?cout (Read 32 times)

formula1

  • Hero Member
  • *****
  • Posts: 666
Assuming ptr is a pointer variable, what will the following statement output?
cout << *ptr;
◦ the address of the variable stored in ptr
◦ the value stored in the variable whose address is contained in ptr
◦ the address of the variable whose address is stored in ptr
◦ the string "*ptr"
◦ None of these


eliasc0401

  • Sr. Member
  • ****
  • Posts: 338
the value stored in the variable whose address is contained in ptr



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
 

Did you know?

It is believed that the Incas used anesthesia. Evidence supports the theory that shamans chewed cocoa leaves and drilled holes into the heads of patients (letting evil spirits escape), spitting into the wounds they made. The mixture of cocaine, saliva, and resin numbed the site enough to allow hours of drilling.

Did you know?

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

Did you know?

In most climates, 8 to 10 glasses of water per day is recommended for adults. The best indicator for adequate fluid intake is frequent, clear urination.

Did you know?

A serious new warning has been established for pregnant women against taking ACE inhibitors during pregnancy. In the study, the risk of major birth defects in children whose mothers took ACE inhibitors during the first trimester was nearly three times higher than in children whose mothers didn't take ACE inhibitors. Physicians can prescribe alternative medications for pregnant women who have symptoms of high blood pressure.

Did you know?

Most childhood vaccines are 90–99% effective in preventing disease. Side effects are rarely serious.

For a complete list of videos, visit our video library