Data Declarations Flashcards

1
Q

int *a;

A

A pointer to an integer

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

int **a;

A

A pointer to a pointer to an integer

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

int *a[10];

A

An array of 10 pointers to integers

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

int (*a)[10];

A

A pointer to an array of 10 integers

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

int (*a)(int);

A

A pointer to a function a that takes an integer argument and returns an integer

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

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

A

An array of 10 pointers to functions that take an integer argument and return an integer

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

int a;

A

an integer

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