c++ - what is the meaning of **ptr in c -
this question has answer here:
i know *ptr pointer variable called ptr
does **ptr mean pointer pointer?
if true, meaning of pointer pointer?
any pointers (pun intended) appreciated.
it depends on context.
in declaration, x **ptr
declares object pointer pointer x
.
outside of declaration, **ptr
dereferences both pointers, yielding value.
remember pointer object holds address of object. pointer pointer that: object holds address of object, happens pointer.
Comments
Post a Comment