C Pointers: What are they and how do you use them?

All About Code
1 min readJun 3, 2022

What is a pointer?

  • If you have a variable ‘var’ in your program, ‘&var’ will give you the address in memory of the variable ‘var’.
  • Pointer variables are special variables that are used to store addresses rather than values.
  • A pointer is a variable that stores the memory address of another variable as its value.
  • A pointer variable points to a data type (like int) of the same type, and is created with the * operator. The address of the variable you're…

--

--