Functions and Memory in C: Leveraging Pointers with Arrays & Functions

C programming    |    Intermediate
  • 11 Videos | 1h 19m 40s
  • Includes Assessment
  • Earns a Badge
Pointers are some of the most important building-blocks of C and are used with a variety of data types. In particular, pointers have a special relationship with arrays, because an array is effectively a pointer to a contiguous block of memory used to hold elements of a specific type. In this course, you will create both arrays and pointers to those arrays. Next, take a deeper dive into the nuances of arrays and pointers and discover how to use pointer arithmetic as a method of viewing array elements. Finally, explore passing pointers and arrays into functions. After completing this course, you'll be able to leverage the equivalence between pointers and arrays, use pointer arithmetic, and return pointers from functions.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    illustrate how arrays are pointers
    create an array and access it through its pointer
    distinguish the finer points of arrays and pointers
    outline key concepts of pointer arithmetic for arrays
    view the address of elements in an array using pointer arithmetic
  • create a pointer to view array elements
    pass pointers into functions
    pass arrays into functions
    return pointers from functions
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 21s
    UP NEXT
  • Playable
    2. 
    Arrays as Pointers
    5m 49s
  • Locked
    3. 
    Creating and Using Arrays as Pointers
    7m 25s
  • Locked
    4. 
    Differentiating the Nuances of Arrays and Pointers
    8m 42s
  • Locked
    5. 
    Pointer Arithmetic
    8m 10s
  • Locked
    6. 
    Performing Pointer Arithmetic
    9m 32s
  • Locked
    7. 
    Indexing into Arrays Using Pointer Arithmetic
    9m 25s
  • Locked
    8. 
    Entering Pointers as Input Arguments
    7m 58s
  • Locked
    9. 
    Accepting Arrays as Input Arguments to Functions
    7m 47s
  • Locked
    10. 
    Returning Pointers from Functions
    9m 33s
  • Locked
    11. 
    Course Summary
    2m 59s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.