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

About 3% of all pregnant women will give birth to twins, which is an increase in rate of nearly 60% since the early 1980s.

Did you know?

Studies show that systolic blood pressure can be significantly lowered by taking statins. In fact, the higher the patient's baseline blood pressure, the greater the effect of statins on his or her blood pressure.

Did you know?

Patients should never assume they are being given the appropriate drugs. They should make sure they know which drugs are being prescribed, and always double-check that the drugs received match the prescription.

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?

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

For a complete list of videos, visit our video library