Thread: I have answer correct?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    71

    I have answer correct?

    What do the following statements?


    Code:
    int f1(int a, double (*f)(float *b));
    f1 is a function that returns an integer and has two parameters:first is a int and the second is an pointer to a function than returns an double and than has a parameter:a pointer to a float.

    Code:
    int f2(int a, double f(char c), int (*g)(int d, int *e));
    f2 is function than returns an integer and has three parametrers:a integer,a function f than returns a double and has a parameter(a char), a pointer to a function than returns a int and has two parameters:a int and a pointer to int.

    Code:
    float *f3(double *a, int * (*f)(double));
    f3 is a function than return a pointer to a float and has two parameters: a pointers to a double,a pointer to a function than returns a pointer to a int whith a parameter(a double)

    Code:
    double (*fc)(int a, float ff(void));
    fc is a pointer to a function than returns a double and has two parameters:an int,a function than returns a float and has non parameters.

    Code:
    int *(*fd)(float *a, double *f(int *d));
    fd is a pointer to a function than returns a pointer to a int and has two parameters:a pointer to a int,a function than returns a pointer to a double and has a pointer to a int
    Last edited by nutzu2010; 02-26-2011 at 08:03 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux for GNU/Linux is not correct?
    By password636 in forum Linux Programming
    Replies: 8
    Last Post: 03-31-2009, 08:30 PM
  2. Keep getting negative sign after answer
    By uptown11 in forum C++ Programming
    Replies: 7
    Last Post: 02-23-2009, 11:14 PM
  3. how would you answer this question?
    By smoking81 in forum Linux Programming
    Replies: 3
    Last Post: 09-08-2008, 03:53 AM
  4. Looking for constructive criticism
    By wd_kendrick in forum C Programming
    Replies: 16
    Last Post: 05-28-2008, 09:42 AM
  5. getting weird answer when not using ".h"
    By CobraCC in forum C++ Programming
    Replies: 10
    Last Post: 05-07-2003, 06:21 AM