Quiz Results
--------------------------------------------------------------------------------
1. Several declarations involving pointers are shown below. Pick the correct solution.
int *ptr;
You answered: B (ptr is a pointer to an integer quantity) Correct!
2. Several declarations involving pointers are shown below. Pick the correct solution.
int *ptr[10];
You answered: C (ptr is a 10-element array of pointers to integer quantities) Correct!
3. Several declarations involving pointers are shown below. Pick the correct solution.
int (*ptr)[10];
You answered: B (ptr is a pointer to a 10-element integer array) Correct!
4. Several declarations involving pointers are shown below. Pick the correct solution.
int *ptr(void);
You answered: B (ptr is a function that returns a pointer to an integer quantity) Correct!
5. Several declarations involving pointers are shown below. Pick the correct solution.
int ptr(int *a);
You answered: B (ptr is a function that accepts an argument which is a pointer to a integer returns an integer quantity) Correct!
6. Several declarations involving pointers are shown below. Pick the correct solution.
int *ptr(int *a);
You answered: C (ptr is a function that accepts an argument which is a pointer to a integer returns a pointer to an integer quantity) Correct!
7. Several declarations involving pointers are shown below. Pick the correct solution.
int (*ptr)(char *a);
You answered: B (ptr is a pointer to a function that accepts an argument which is a pointer to a character returns an integer quantity) Correct!
8. Several declarations involving pointers are shown below. Pick the correct solution.
int (*ptr(int *b))[5];
You answered: C (ptr is a function that accepts an argument which is a pointer to a integer returns a pointer to a 5-element integer array) Correct!
9. Several declarations involving pointers are shown below. Pick the correct solution.
char ptr(int (*a)[]);
You answered: B (ptr is a function that accepts an argument which is a pointer to a integer array returns an character quantity) Correct!
10. Several declarations involving pointers are shown below. Pick the correct solution.
char ptr(int *a[]);
You answered: C (ptr is a function that accepts an argument which is an array of pointers to integers returns an character quantity) Correct!
11. Several declarations involving pointers are shown below. Pick the correct solution.
int *ptr(char a[]);
You answered: C (ptr is a function that accepts an argument which is a character array returns a pointer to an integer quantity) Correct!
12. Several declarations involving pointers are shown below. Pick the correct solution.
int *ptr(char *a[]);
You answered: C (ptr is a function that accepts an argument which is a array of pointers to characters returns a pointer to an integer quantity) Correct!
13. Several declarations involving pointers are shown below. Pick the correct solution.
int (*ptr)(char (*a)[]);
You answered: B (ptr is a pointer to a function that accepts an argument which is a pointer to a character array returns an integer quantity) Correct!
14. Several declarations involving pointers are shown below. Pick the correct solution.
int *(*ptr)(char (*a)[]);
You answered: B (ptr is a pointer to a function that accepts an argument which is a pointer to a character array returns a pointer to an integer quantity) Correct!
15. Several declarations involving pointers are shown below. Pick the correct solution.
int *(*ptr)(char *a[]);
You answered: C (ptr is a pointer to a function that accepts an argument which is an array of pointers to characters returns a pointer to an integer quantity) Correct!
16. Several declarations involving pointers are shown below. Pick the correct solution.
int (*ptr[10])(void);
You answered: C (ptr is a 10-element array of pointers to functions. Each function returns an integer quantity) Correct!
17. Several declarations involving pointers are shown below. Pick the correct solution.
int (*ptr[10])(float a);
You answered: C (ptr is a 10-element array of pointers to functions. Each function accepts an argument which is a float and returns an integer quantity) Correct!
18. Several declarations involving pointers are shown below. Pick the correct solution.
int *(*ptr[10])(float a);
You answered: C (ptr is a 10-element array of pointers to functions. Each function accepts an argument which is a float and returns an integer quantity) Incorrect!
Correct answer is: D (ptr is a 10-element array of pointers to functions. Each function accepts an argument which is a float and returns a pointer to an integer quantity)
19. Several declarations involving pointers are shown below. Pick the correct solution.
int *(*ptr[10])(float *a);
You answered: D (ptr is a 10-element array of pointers to functions. Each function accepts an argument which is a pointer to a float and returns a pointer to an integer quantity) Correct!
20. Several declarations involving pointers are shown below. Pick the correct solution.
int *ptr(char (*a)[]);
You answered: B (ptr is a function that accepts an argument which is a pointer to a character array returns a pointer to an integer quantity) Correct!
--------------------------------------------------------------------------------
Your Score is 19/20 or 95% of questions answered correctly.
--------------------------------------------------------------------------------

