Pointers Flashcards

1
Q

Declare a pointer to an integer.

A

int *p;

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

Declare an array of pointers to integers.

A

int *p[10];

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

Declare a pointer to a 10-element integer array.

A

int (*p)[10];

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

Declare a function that returns a pointer to an integer.

A

int *p(void);

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

Declare a function that returns an integer and accepts a pointer to a character as an argument.

A

int p(char *a);

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

Declare a function that returns a pointer to an integer and accepts a pointer to a character as an argument.

A

int *p(char *a);

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

Declare a pointer to a function that returns an integer and accepts a pointer to a character as an argument.

A

int (*p)(char *a);

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

Declare a function that returns a pointer to a 10-element integer array and accepts a pointer to a character as an argument.

A

int (*p(char *a))[10];

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

Declare a function that returns an integer and accepts a pointer to an array of integers as an argument.

A

int p(char (*a)[]);

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

Declare a function that returns an integer and accepts an array of pointers to characters as an argument.

A

int p(char *a[]);

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

Declare a function that returns a pointer to an integer and accepts an array of characters as an argument.

A

int *p(char a[]);

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

Declare a function that returns a pointer to an integer and accepts a pointer to an array of characters as an argument.

A

int *p(char (*a)[]);

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

Declare a function that returns a pointer to an integer and accepts an array of pointers to characters as an argument.

A

int *p(char *a[]);

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

Declare a pointer to a function that returns an integer and accepts a pointer to a character array as an argument.

A

int (*p)(char (*a)[]);

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

Declare a pointer to a function that returns a pointer to an integer and accepts a pointer to a character array as an argument.

A

int *(*p)(char (*a)[]);

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

Declare a pointer to a function that returns a pointer to an integer and accepts an array of pointers to characters as an argument.

A

int *(*p)(char *a[]);

17
Q

Declare a 10-element array of pointers to functions; each function returning an integer.

A

int (*p[10])(void);

18
Q

Declare a 10-element array of pointers to functions; each function accepts a character as an argument and returns an integer.

A

int (*p[10])(char a);

19
Q

Declare a 10-element array of pointers to functions; each function accepts a character as an argument and returns a pointer to an integer.

A

int *(*p[10])(char a);

20
Q

Declare a 10-element array of pointers to functions; each function accepts a pointer to a character as an argument and returns a pointer to an integer.

A

int *(*p[10])(char *a);