what does this function header mean

This is a discussion on what does this function header mean within the C Programming forums, part of the General Programming Boards category; Code: float foo (int n, float (*f) (int)) i dont get the 2ns parameter it is a pointer to a ...

  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, 09:18 PM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 12:45 PM
  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, 05:42 AM

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