...
Nielit Scientist-B CS 22-07-2017
October 9, 2023
UGC NET Dec-2020 and June-2021 Paper-2
October 9, 2023
Nielit Scientist-B CS 22-07-2017
October 9, 2023
UGC NET Dec-2020 and June-2021 Paper-2
October 9, 2023

Nielit Scientist-B IT 4-12-2016

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
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
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
Nielit Scientist-B CS 22-07-2017
October 9, 2023
UGC NET Dec-2020 and June-2021 Paper-2
October 9, 2023

Nielit Scientist-B IT 4-12-2016

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
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
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!