Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Engineering LibreTexts

10: Pointers and Dynamic Memory

( \newcommand{\kernel}{\mathrm{null}\,}\)

  • 10.1: Address Operator
    "Every variable is assigned a memory location whose address can be retrieved using the address operator &. The address of a memory location is called a pointer. Every variable in an executing program is allocated a section of memory large enough to hold a value of that variable’s type."
  • 10.2: Pointer Data Type
    A pointer variable is a variable that holds the address of a memory location. "Every variable is assigned a memory location whose address can be retrieved using the address operator &. The address of a memory location is called a pointer."
  • 10.3: Indirection Operator
    When we pass parameters to functions we usually pass by value; that is the calling function provides several values to the called function as needed. The called function takes these values which have local scope and stores them on the stack using them as needed for whatever processing the functions accomplishes.
  • 10.4: Arrays, Pointers and Such
  • 10.5: Pointer Arithmetic


This page titled 10: Pointers and Dynamic Memory is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Sandra Ruiz.

  • Was this article helpful?

Support Center

How can we help?