Right-Left Pointer Declarations Practice Flashcards

1
Q

double (*p)[5]

A

a pointer to an array of 5 doubles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

int (p)(char *)

A

a pointer to a function that takes in a char * that returns a pointer to an int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

char (*p)[10][20]

A

a pointer that points to an array of size 10 where each array consists of 20 chars

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

float *p[10]

A

an array of 10 pointers that point to float

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

int (p())[3]

A

a pointer to a function function that returns a pointer to an int array of length 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

double **p

A

a pointer that points to a double

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

int (*p)(double)

A

a pointer that points to a function that takes in a double and returns an int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

char **p[5]

A

an array of 5 pointers where each pointer is a pointer to char

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

float ***p

A

a pointer to a pointer to a pointer to float

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

double (*p())[10]

A

a pointer to a function the returns a pointer to a double array of size 10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

int *p[3][4]

A

a 2D array of pointers that point to int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

int ((p())[3])()

A

a pointer of a function which points to an array of 3 functions which point to an int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

char (*p())[5]

A

a pointer to a function of an array of 5 chars

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

double ((p())3;

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

float (*p)[5][10]

A

a pointer to an array of 5 arrays each containing 10 floats

How well did you know this?
1
Not at all
2
3
4
5
Perfectly