A
arnuld
this is from section 7.2.4 of C++ Primer 4/e
int *matrix[10]; /* an array of 10 pointers */
int (*matrix)[10]; /* poiter to an array of 10 ints */
if that is true then, is this right:
int* matrix[10]; /* an array of 10 pointers to ints */
can't i write a replcement of author's 2nd example above ?
and what about these:
(int*) matrix[10]; /* ?? */
int (*) matrix[10]; /* ?? */
int *matrix[10]; /* an array of 10 pointers */
int (*matrix)[10]; /* poiter to an array of 10 ints */
if that is true then, is this right:
int* matrix[10]; /* an array of 10 pointers to ints */
can't i write a replcement of author's 2nd example above ?
and what about these:
(int*) matrix[10]; /* ?? */
int (*) matrix[10]; /* ?? */