Pointers to Data and Functions in C
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