Q:

When a pointer points to an object, we can use the dereference operator (the * operator) to access that object

0

When a pointer points to an object, we can use the dereference operator (the * operator) to access that object.

All Answers

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

int ival = 42;
int *p = &ival; // p holds the address of ival; p is a pointer to ival
cout << *p; // * yields the object to which p points; prints 42

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