Skip to content

Generics

mrtalley edited this page Oct 17, 2017 · 1 revision

Generics

  • Need function pointers

How do we declare one?

<return_type> (*<function_name>)(<argument_list>)
int (*intcmp)(int,int) /* intcmp is pointer to function taking two ints and returning int */

Clone this wiki locally