Lecture overview -- Keyboard shortcut: 'u'  Previous page: Structures: Examples -- Keyboard shortcut: 'p'  Next page: User defined types -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    From C to C++ - slide 18 : 29

Function types

Functions in C can be used as data of function type

func-1.c
C program with function pointer.
func-2.c
Same program - without explicit use of the address and dereferencing operators.
func-3.c
Same program - using a typedef to capture the function type.
Go to exercise
An array of functions