Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Function pointer?

Definition 4.7 University Computer Science — Year 1 · Capítulo 4 — Pointers and Arrays

A function pointer holds the address of a function together with its type: for example int (*f)(int, int) declares f as a pointer to a function taking two int and returning an int. The name of a function converts to a pointer to it, and a call f(6, 7) through the pointer calls the function it points to.

Ler no capítulo →