Functions and Memory in C: Getting Started with Pointers

C programming    |    Intermediate
  • 11 Videos | 1h 20m 52s
  • Includes Assessment
  • Earns a Badge
One of the main reasons C retains its relevance after 50 years is the level of interaction between the programmer and the memory which C allows for. While more modern languages such as Python manage the memory under-the-hood, C allows the user to control all aspects of memory management. At the heart of C's memory management capabilities lie pointers. Begin this course focusing on memory allocation layout and the concepts of stack and heap memory. Then, explore pointers to learn how to view the memory location referenced by the pointer and how to dereference a pointer to view the data at the referenced address or modify data stored at the memory location being pointed to. Finally, use the NULL keyword as both a value and a pointer to the non-existent memory address of 0. Upon completion of this course, you'll be able to use referencing and dereferencing operators in C and properly test for and use NULL values.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    recall the memory layout of C
    recognize pointers and demonstrate how to use them
    reference the value in the block of memory referred to by the pointer
    create basic pointers
    access memory locations and the values stored in them
  • modify variables using pointers
    create pointers from other pointers
    dereference pointers and view addresses of variables
    work with the NULL type
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 6s
    UP NEXT
  • Playable
    2. 
    Memory Allocation Layout in C
    9m 38s
  • Locked
    3. 
    Pointers in C
    9m 28s
  • Locked
    4. 
    Dereference Pointers
    6m 47s
  • Locked
    5. 
    Creating Pointers to Addresses
    8m 47s
  • Locked
    6. 
    Dereferencing and Viewing Addresses of Pointers
    6m 29s
  • Locked
    7. 
    Modifying Values Stored in Addresses through Pointers
    11m 10s
  • Locked
    8. 
    Creating Pointers to Other Pointers
    10m 1s
  • Locked
    9. 
    Dereferencing Pointers and Viewing Memory Addresses
    9m 21s
  • Locked
    10. 
    Creating and Dereferencing Pointers
    4m 55s
  • Locked
    11. 
    Course Summary
    2m 12s

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.