Sunday, August 2, 2009

How will you express the following expressions?

How will you express the following expressions?








1. float (**a(void))[6];


2. short (**b(void))(int);


3. long *(*(*c(void))(int))[6];


4. char *(**d)(void);


5. double *(*(*(*e)(void))[5])(void);

How will you express the following expressions?
i believe those are function pointers, so #1 would be





float a(*void[6])





(a function named 'a' that takes a pointer to an array with six elements, and it returns a float.)





that's my guess, and i'm stickin to it!


No comments:

Post a Comment