Thread: Function Pointer

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    1

    Function Pointer

    Why are we used function pointer?What is actual benefit of of pointer to function in case of storage classes....

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    I have a feeling the question you ask is your homework

    Anyway, Callbacks is one good reason -- Just look at the Gtk+ source for 100 zillion examples.

  3. #3
    Registered User slingerland3g's Avatar
    Join Date
    Jan 2008
    Location
    Seattle
    Posts
    603
    Not to long ago I was reviewing such code and the below link may suit you as well.

    http://www.cplusplus.com/doc/tutorial/pointers.html

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sorting number
    By Leslie in forum C Programming
    Replies: 8
    Last Post: 05-20-2009, 04:23 AM
  2. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  3. Function Pointer help
    By Skydt in forum C Programming
    Replies: 5
    Last Post: 12-02-2005, 09:13 AM
  4. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM