Q:

Defining arrays that hold pointers is fairly straightforward, defining a pointer or reference to an array is a bit more complicated

0

Defining arrays that hold pointers is fairly straightforward, defining a pointer or reference to an array is a bit more complicated.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

int *ptrs[10]; // ptrs is an array of ten pointers to int
int &refs[10] = /* ? */; // error: no arrays of references
int (*Parray)[10] = &arr; // Parray points to an array of ten ints
int (&arrRef)[10] = arr; // arrRef refers to an array of ten ints

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now