Nielit Scientist-B CS 22-07-2017
October 9, 2023UGC NET Dec-2020 and June-2021 Paper-2
October 9, 2023Nielit Scientist-B IT 4-12-2016
Question 11 |
What is the meaning of following declaration?
int(*P[7])();
int(*P[7])();
P is pointer to function | |
P is pointer to such function which return type is array | |
P is array of pointer to function | |
P is pointer to array of function |
Question 11 Explanation:
int *ptr[7]; –This is an array of 7 int* pointers, a pointer to an array of 7 ints
int (*ptr)[7]; –This is a pointer to an array of 7 int
int(*P[7])(); –P is array of pointer to function
int(*P)() ; – P is pointer to function
int (*ptr)[7]; –This is a pointer to an array of 7 int
int(*P[7])(); –P is array of pointer to function
int(*P)() ; – P is pointer to function
Correct Answer: C
Question 11 Explanation:
int *ptr[7]; –This is an array of 7 int* pointers, a pointer to an array of 7 ints
int (*ptr)[7]; –This is a pointer to an array of 7 int
int(*P[7])(); –P is array of pointer to function
int(*P)() ; – P is pointer to function
int (*ptr)[7]; –This is a pointer to an array of 7 int
int(*P[7])(); –P is array of pointer to function
int(*P)() ; – P is pointer to function
Subscribe
Login
0 Comments