function pointer

This is a discussion on function pointer within the C Programming forums, part of the General Programming Boards category; Hi guys, I have a question concerning function pointers to ask you guys. static int (*ptr)(int b, char a); I ...

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    5

    function pointer

    Hi guys,

    I have a question concerning function pointers to ask you guys.

    static int (*ptr)(int b, char a);

    I do not know if "static" belongs to the pointer "ptr" or if the function this pointer points to must be a static function.

    Please help.

    Thank you in advance
    Komkamol

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,803
    The former.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    5
    Thanks a lot for your quick answer.

    Komkamol

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, 12:03 PM
  3. Function Pointer help
    By Skydt in forum C Programming
    Replies: 5
    Last Post: 12-02-2005, 08:13 AM
  4. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 08:32 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21