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 pointer in c plus plus?
What is the difference between memcpy and memmove?
What is the difference between NULL and NUL?
Explain is it valid to address one element beyond the end of an array?
What is the use of printf() and scanf() functions?
What is a program?
Define macros.
Is c compiled or interpreted?
What does typedef struct mean?
swap 2 numbers without using third variable?
Explain output of printf("Hello World"-'A'+'B'); ?
Why c is faster than c++?
Write a program to generate random numbers in c?
What is omp_num_threads?
Can the “if” function be used in comparing strings?