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

C programming    |    Intermediate
  • 11 videos | 1h 19m 40s
  • Includes Assessment
  • Earns a Badge
Rating 4.3 of 32 users Rating 4.3 of 32 users (32)
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

  • 2m 21s
  • 5m 49s
    After completing this video, you will be able to illustrate how arrays are pointers. FREE ACCESS
  • Locked
    3.  Creating and Using Arrays as Pointers
    7m 25s
    Learn how to create an array and access it through its pointer. FREE ACCESS
  • Locked
    4.  Differentiating the Nuances of Arrays and Pointers
    8m 42s
    Learn how to distinguish the finer points of arrays and pointers. FREE ACCESS
  • Locked
    5.  Pointer Arithmetic
    8m 10s
    During this video, you will learn how to outline key concepts of pointer arithmetic for arrays. FREE ACCESS
  • Locked
    6.  Performing Pointer Arithmetic
    9m 32s
    In this video, find out how to view the address of elements in an array using pointer arithmetic. FREE ACCESS
  • Locked
    7.  Indexing into Arrays Using Pointer Arithmetic
    9m 25s
    In this video, learn how to create a pointer to view array elements. FREE ACCESS
  • Locked
    8.  Entering Pointers as Input Arguments
    7m 58s
    During this video, you will learn how to pass pointers into functions. FREE ACCESS
  • Locked
    9.  Accepting Arrays as Input Arguments to Functions
    7m 47s
    In this video, you will learn how to pass arrays into functions. FREE ACCESS
  • Locked
    10.  Returning Pointers from Functions
    9m 33s
    In this video, learn how to return pointers from functions. FREE ACCESS
  • Locked
    11.  Course Summary
    2m 59s
    f80f673b-ee1f-4447-a5f1-e3fb25058701 FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

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

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.5 of 6 users Rating 4.5 of 6 users (6)
Rating 4.3 of 131 users Rating 4.3 of 131 users (131)
Rating 4.8 of 66 users Rating 4.8 of 66 users (66)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.2 of 59 users Rating 4.2 of 59 users (59)
Rating 4.2 of 331 users Rating 4.2 of 331 users (331)
Rating 4.5 of 196 users Rating 4.5 of 196 users (196)