Hi folks, i have a bit of trouble with the following declarations
1. a pointer to an array of strings
2. a reference to an array of integers
Any help will be appreciated..
A pointer to an array is a pointer to the first element of that array.
For a reference to an array just parenthesise
eg: int (&ref_to_array)[/*Array size*/];
Nope. There's no such thing as a reference to an array of integers. A reference can only point to a single variable or object, and due to their syntax, the offset operator can't be applied to them.
I can't even get a reference to a pointer to work. Man, references suck.