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

Ether was used widely for surgeries but became less popular because of its flammability and its tendency to cause vomiting. In England, it was quickly replaced by chloroform, but this agent caused many deaths and lost popularity.

Did you know?

Amphetamine poisoning can cause intravascular coagulation, circulatory collapse, rhabdomyolysis, ischemic colitis, acute psychosis, hyperthermia, respiratory distress syndrome, and pericarditis.

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.

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?

It is difficult to obtain enough calcium without consuming milk or other dairy foods.

For a complete list of videos, visit our video library