Thread: what does this function header mean

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    71

    what does this function header mean

    Code:
    float foo (int n, float (*f) (int))
    i dont get the 2ns parameter

    it is a pointer to a float but what is that (int) following it

  2. #2
    Registered User Pioneer's Avatar
    Join Date
    Dec 2002
    Posts
    59
    It's a pointer to a function that returns float and takes int as an argument.

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    71

    Thumbs up

    thanks dude

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  3. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 10:18 AM
  4. Header file for "fix" function ?
    By Rex in forum C++ Programming
    Replies: 1
    Last Post: 04-08-2003, 04:42 AM