Q:

Dereferencing a pointer yields the object to which the pointer points. We can assign to that object by assigning to the result of the dereference

0

Dereferencing a pointer yields the object to which the pointer points. We can assign to that object by assigning to the result of the dereference.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

*p = 0; // * yields the object; we assign a new value to ival through p
cout << *p; // prints 0

When we assign to *p, we are assigning to the object to which p points.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now