Two dimensional arrays in C++ programming language
Two dimensional or 2d arrays in C++ programming language Last updated on : October 24, 2026 In todays blog post we are going to cover a very important concept with respect to arrays in C++ programming language. This concept is about two-dimensional arrays in C++ program. Two-dimensional arrays are also referred as 2d arrays and they are basically array of arrays . We can simply store data in two-dimensional arrays or 2d arrays in a grid like structure which consists of rows and columns . And keep this one important point in your mind that in 2d arrays , again the starting index for both rows and columns is 0 (zero). It means that if you want to access the first element of 2d array you have to put 0 in both rows and columns square brackets like this, string words[2][2] = { { "hello" , "World" },{ "good" , "bad" } }; cout << words[0][0] << endl; In this way we can access the very first element or value...