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
Are comments included during the compilation stage and placed in the EXE file as well?
How can I dynamically allocate arrays?
Can static variables be declared in a header file?
What are the string functions? List some string functions available in c.
How can I use a preprocessorif expression to ?
Which is better between malloc and calloc?
What is typedf?
How many levels of pointers can you have?
What is memory leak in c?
How can I do serial ("comm") port I/O?
Are there constructors in c?
What are the 5 types of organizational structures?
Explain the difference between #include "..." And #include <...> In c?
Write a program to print ASCII code for a given digit.
What is meant by gets in c?