Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 395 Bytes

File metadata and controls

6 lines (5 loc) · 395 Bytes

higher-order-functions-and-pointers-to-functions-in-c

Example how higher-order functions style is implemented in C programming language using pointers to functions. We have similar functionality like Ruby blocks or JavaScript callbacks when using pointers to functions in C, it's like using a lambda function.

References: The C Programming Language (2nd Edition) - 5.11 Pointers to Functions