Thursday, August 7, 2008

Complicated Declaration

Function Declaration

Function Returning Accepting
int *f(); int ptr any number of arg in c and no arg in cpp
char(*(*f())[10])(); pointer to the array of pointers to function
int (*(*f())[10]) () pointer to the array of 10 pointers to function that returns integer

Pointer

Expression p is the pointer to
int *p;
iint **p;
int (*p)(); function that returns the integer
int (*p)[30] array of 30 int

0 comments:

Post a Comment