Answer Posted / chittaranjan
int (*ptr)[10];
is the proper declaration of pointer to an array, i.e. ptr
is a pointer to an array of 10 integers .
Note:
int *ptr[10];
which would make ptr the name of an array of 10 pointers to
type int.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is a far pointer in c?
What is the symbol indicated the c-preprocessor?
What is anagram in c?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
I need a sort of an approximate strcmp routine?
How does placing some code lines between the comment symbol help in debugging the code?
Why is it that not all header files are declared in every C program?
What is wrong with this program statement? void = 10;
What is the benefit of using an enum rather than a #define constant?
How do I use void main?
What is a memory leak? How to avoid it?
How can this be legal c?
Explain what happens if you free a pointer twice?
Is there anything like an ifdef for typedefs?
Is python a c language?