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 courseillustrate how arrays are pointerscreate an array and access it through its pointerdistinguish the finer points of arrays and pointersoutline key concepts of pointer arithmetic for arraysview the address of elements in an array using pointer arithmetic
-
create a pointer to view array elementspass pointers into functionspass arrays into functionsreturn pointers from functionssummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview2m 21sUP NEXT
-
2.Arrays as Pointers5m 49s
-
3.Creating and Using Arrays as Pointers7m 25s
-
4.Differentiating the Nuances of Arrays and Pointers8m 42s
-
5.Pointer Arithmetic8m 10s
-
6.Performing Pointer Arithmetic9m 32s
-
7.Indexing into Arrays Using Pointer Arithmetic9m 25s
-
8.Entering Pointers as Input Arguments7m 58s
-
9.Accepting Arrays as Input Arguments to Functions7m 47s
-
10.Returning Pointers from Functions9m 33s
-
11.Course Summary2m 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.