(/xwiki/bin/view/Main/) / Learn Software and Hardware Tools (/xwiki/bin/view/software-tools/)
/ Fundamentals of the C Programming Language (/xwiki/bin/view/software-tools/c-programming/)
/ C Programming Data Pointers (/xwiki/bin/view/software-tools/c-programming/data-pointers/)
C Programming Data Pointers
Last modified by Microchip on 2024/01/15 22:17
Variable Address vs Variable Value
In some situations, we will want to work with a variable's address in memory, rather than the value it contains:
A pointer is essentially a variable that holds the address of another variable or function. Pointers may be used to
perform what is known in the assembly language world as indirect addressing. When you use pointers, you are able
to access the variable that they point to and you are able to change the pointer so that it points to a different
variable. This simple mechanism has hundreds of uses and is one of the most powerful features of the C
programming language.
A pointer allows us to indirectly access a variable.