I am reviewing pointers and how to access the content of a memory location pointed by a pointer.
My question is: Are there any differences between indirection and dereferencing when they access the value of a pointer in C?
I am reviewing pointers and how to access the content of a memory location pointed by a pointer.
My question is: Are there any differences between indirection and dereferencing when they access the value of a pointer in C?
I could find exactly one occurrence of "dereferencing" (and none of "dereference") in the current C11 draft, and this was in a footnote, in the phrase "dereferencing a pointer". The standard calls unary *
the indirection operator.
I would find "indirecting a pointer" strange (the standard doesn't use the verb "to indirect"), but this question is more about linguistics than about programming. I'm not aware of any common usage of "dereferencing" meaning something else than indirection, and I doubt there is. This Wikipedia article calls unary *
indirection as well as dereference.