0Pricing
C Academy · Lesson

Pointer Arrays and Function Pointers

Understand the concept of arrays of pointers and how function pointers are used for callbacks and efficient program execution.

1

Pointer Arrays and Function Pointers

Pointers can be used in arrays to store multiple memory addresses, and function pointers allow functions to be passed as arguments.

In this lesson, you will learn:

  • How to declare and use pointer arrays.
  • How function pointers work.
  • How function pointers are used for callbacks.
Pointer Arrays and Function Pointers — illustration 1

2

What is an Array of Pointers?

An array of pointers is an array where each element is a pointer.

Example:

int *arr[5];

This array can store 5 integer pointers.

All lessons in this course

  1. Introduction to Pointers
  2. Dynamic Memory Allocation
  3. Pointer Arrays and Function Pointers
← Back to C Academy