Playing with arrays in C++