C Programming - Complicated Declarations - Discussion
Discussion Forum : Complicated Declarations - General Questions (Q.No. 12)
12.
What do the following declaration signify?
int (*ptr)[30];
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]
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?
can anyone explain me how 'a' is the correct answer?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers