Skip to main content
Engineering LibreTexts

23: Pointers

  • Page ID
    10528
    • 23.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."
    • 23.2: Parameter Passing by Reference
      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.
    • 23.3: 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."
    • 23.4: 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.
    • 23.5: Practice 22 Pointers