October 9, 2023
October 9, 2023
October 9, 2023
UGC NET Dec-2020 and June-2021 Paper-2
October 9, 2023
 Question 11
What is the meaning of following declaration?
int(*P[7])();
 A P is pointer to function B P is pointer to such function which return type is array C P is array of pointer to function D 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
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
Article Rating
Subscribe
Notify of
Inline Feedbacks
October 9, 2023
UGC NET Dec-2020 and June-2021 Paper-2
October 9, 2023
 Question 11
What is the meaning of following declaration?
int(*P[7])();
 A P is pointer to function B P is pointer to such function which return type is array C P is array of pointer to function D 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
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