Right-Left Pointer Declarations Practice Flashcards
double (*p)[5]
a pointer to an array of 5 doubles
int (p)(char *)
a pointer to a function that takes in a char * that returns a pointer to an int
char (*p)[10][20]
a pointer that points to an array of size 10 where each array consists of 20 chars
float *p[10]
an array of 10 pointers that point to float
int (p())[3]
a pointer to a function function that returns a pointer to an int array of length 3
double **p
a pointer that points to a double
int (*p)(double)
a pointer that points to a function that takes in a double and returns an int
char **p[5]
an array of 5 pointers where each pointer is a pointer to char
float ***p
a pointer to a pointer to a pointer to float
double (*p())[10]
a pointer to a function the returns a pointer to a double array of size 10
int *p[3][4]
a 2D array of pointers that point to int
int ((p())[3])()
a pointer of a function which points to an array of 3 functions which point to an int
char (*p())[5]
a pointer to a function of an array of 5 chars
double ((p())3;
a pointe to a function which returns a pointer to 3 functions that take in an int and char as parameters which returns a double
float (*p)[5][10]
a pointer to an array of 5 arrays each containing 10 floats