pointer to array c++ - Stack Overflow
stackoverflow.com › questions › 10252837Dec 13, 2013 · A pointer to an array is declared like this. int (*k)[2]; and you're exactly right about how this would be used. int x = (*k)[0]; (note how "declaration follows use", i.e. the syntax for declaring a variable of a type mimics the syntax for using a variable of that type.) However one doesn't typically use a pointer to an array.