C Programming - Complicated Declarations - Discussion

Discussion Forum : Complicated Declarations - General Questions (Q.No. 12)
12.
What do the following declaration signify?
int (*ptr)[30];
ptr is a pointer to an array of 30 integer pointers.
ptr is a array of 30 integer function pointer.
ptr is a array of 30 integer pointers.
ptr is a array 30 pointers.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
14 comments Page 2 of 2.

Vinay said:   1 decade ago
ptr is a pointer to an array of 30 integers.

Shireesh said:   1 decade ago
In answer A take 30 integers instead of integer pointers, then Ans is A.

Ram mohan said:   2 decades ago
*ptr[30] is a array of 30 pointers but
here mentioned that (*ptr)[30]

Harish jangra said:   2 decades ago
i think 'c' is the correct answer to this problem.
can anyone explain me how 'a' is the correct answer?


Post your comments here:

Your comments will be displayed after verification.