Skip to Main Content
Practical C++
book

Practical C++

by Rob McGregor
August 1999
Beginner to intermediate content levelBeginner to intermediate
912 pages
15h 44m
English
Que
Content preview from Practical C++

Chapter 13. Creating and Using Function Pointers

<feature>
  • Understand how a function can have a pointer

  • See why pointers to functions can be valuable

  • Create function pointer data types

  • Declare and use function pointers

  • Create arrays of function pointers

</feature>

How Can a Function Have a Pointer?

When a function is compiled into an executable program, storage is reserved for the function’s executable code to reside in memory at runtime. When the program runs, the function loads into memory somewhere. The address marking the beginning of the function in memory is called the function address.

Function Address

A function address is the memory location marking the starting address of the memory segment that a function’s executable code loads into at runtime. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical C++ Programming, 2nd Edition

Practical C++ Programming, 2nd Edition

Steve Oualline
C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell

Publisher Resources

ISBN: 0789721449Purchase book