Strictly speaking, there are no multidimensional arrays in C++. What are commonly referred to as multidimensional arrays are actually arrays of arrays. It can be helpful to keep this fact in mind when you use what appears to be a multidimensional array.
Exercise 3.41: Write a program to initialize a
vector from an array of
Exercise 3.42: Write a program to copy a
ints into an array of
We define an array whose elements are arrays by providing two dimensions: the dimension of the array itself and the dimension of its elements:
int ia; // array of size 3; each element ...