Author Question: Assuming ptr is a pointer variable, what will the following statement output?cout (Read 43 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?

Cucumber slices relieve headaches by tightening blood vessels, reducing blood flow to the area, and relieving pressure.

Did you know?

More than 34,000 trademarked medication names and more than 10,000 generic medication names are in use in the United States.

Did you know?

All adverse reactions are commonly charted in red ink in the patient's record and usually are noted on the front of the chart. Failure to follow correct documentation procedures may result in malpractice lawsuits.

Did you know?

Aspirin may benefit 11 different cancers, including those of the colon, pancreas, lungs, prostate, breasts, and leukemia.

Did you know?

Your heart beats over 36 million times a year.

For a complete list of videos, visit our video library