Sunday, January 24, 2010

Multi-dimensional Arrays

int rowcol1[][2] = {1, 2}; compiles. int rowcol2[2][] = {1, 2}; doesn't.
Reference: "C++ Gotchas" by Stephen C. Dewhurst. Addison-Wesley, 2002., p. 19.

No comments:

Post a Comment