出典:Wiktionary
出典:Wikipedia
出典:『Wikipedia』 (2011/05/08 15:59 UTC 版)
A function pointer is a type of pointer in C, C++, D, and other C-like programming languages, and Fortran 2003. When dereferenced, a function pointer can be used to invoke a function and pass it arguments just like a normal function. In programming languages like C, function pointers can be used to simplify code by providing a simple way to select a function to execute based on run-time values.