C Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 2)
2.
What does the following declaration mean?
int (*ptr)[10];
ptr is array of pointers to 10 integers
ptr is a pointer to an array of 10 integers
ptr is an array of 10 integers
ptr is an pointer to array
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
64 comments Page 7 of 7.

Ravikumar said:   1 decade ago
We can use a * sometimes to declare the array both are same that is way answer is b.

Neha said:   1 decade ago
Can you explain me the concept?

Chitra said:   1 decade ago
*ptr is a pointer and [10] is array is array declaration.

Sagar Said said:   2 decades ago
Can you explain me the concept


Post your comments here:

Your comments will be displayed after verification.