Advertisement

Pointers in C pp 113-122 | Cite as

Function Pointers

  • Naveen Toppo
  • Hrishikesh Dewan
Chapter

Abstract

Many times we come across situations where we have multiple functions that do specific jobs. Then, based on a particular situation, we need to call the proper function from that group. In this chapter, we will see how function pointers help us tackle those situations. Function pointers are variables that are used for pointing to the address of a function. With the help of a function pointer, we can invoke a function call. Interestingly, we can use the function pointers to implement late binding, where we don’t know which particular function call to make beforehand.

Copyright information

© Naveen Toppo 2013

Authors and Affiliations

  • Naveen Toppo
    • 1
  • Hrishikesh Dewan
    • 1
  1. 1.KarnatakaIndia

Personalised recommendations