C Programming - Complicated Declarations - Discussion
Discussion Forum : Complicated Declarations - General Questions (Q.No. 2)
2.
What do the following declaration signify?
int *ptr[30];
Discussion:
12 comments Page 2 of 2.
HITESH said:
1 decade ago
No Ankur,the answer is only B coz when we declare
int *p;
then it means u declare p is a pointer to integer n when u declare
int ptr[30];
ptr is an array name to integer n here..
int *ptr[30];
ptr is a array of 30 pointers to integers.
int *p;
then it means u declare p is a pointer to integer n when u declare
int ptr[30];
ptr is an array name to integer n here..
int *ptr[30];
ptr is a array of 30 pointers to integers.
Ankur said:
1 decade ago
Answer c is correct.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers