Pointers to Data and Functions in C

0% of 5 hours and 20 minutes completed.

Pointers are probably one of the most difficult concepts in C to master. To the beginner their syntax seems strange and their usage is sometimes hard to grasp. However it is very important for every C developer to understand how pointers work. Not only pointers to data but also pointers to functions that can be used to dynamically change program behavior at runtime.

In this class you will be working with pointers to variables, arrays, structures, and functions. Work with allocating memory dynamically. You will also explore opaque pointers and type abstraction.

After completing this course, you will be able to:

  • Implement pass-by-reference semantics using pointers
  • Manipulate a structure variable through a pointer
  • Allocate and release memory on the heap
  • Write a function that accepts a function as a parameter
  • Combine structures and functions to create higher-level constructs
There are no resources available.
0 attachments
Access and manipulate memory with pointers
1 hour 14 minutes 8 Activities: Article  (3)  |  Lab  (3)  |  Video  (2)
Manage your program’s memory usage with heap and stack based allocations
1 hour 38 minutes 7 Activities: Article  (5)  |  Lab  (1)  |  Video  (1)
Create abstract data types using opaque pointers
1 hour 20 minutes 7 Activities: Article  (5)  |  Lab  (1)  |  Video  (1)
Change program behavior at runtime with function pointers
1 hour 6 minutes 6 Activities: Article  (3)  |  Lab  (1)  |  Video  (2)
1 minute 1 Activity: Article  (1)  |  Lab  (0)  |  Video  (0)