Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons

© 2026 BraveProgrammer. All rights reserved.

  1. Courses
  2. /
  3. C Programming Fundamentals

Lesson 22 of 50 · c

Function Pointers

Duration: 11 mins

A function pointer stores the address of a function and can be invoked like a regular function.

int add(int a, int b) { return a + b; }
int (*op)(int,int) = add; // pointer to function
printf("%d\n", op(2,3)); // prints 5

Useful for callbacks, tables of operations, and implementing polymorphism in C.

Previous: Bitwise OperationsNext: Recursive Functions