Multidimensional Arrays

  • Mitsunori Ogihara


Arrays may have more than one dimension. We call arrays having more than one dimension multi-dimensional arrays. For an integer N ≥ 1, an N-dimensional array as a type is declared with N pairs of brackets []. In the following code, mDouble is declared as a two-dimensional array of double and myFlags is declared as a three-dimensional array of boolean.

Copyright information

© Springer Nature Switzerland AG 2018

Authors and Affiliations

  • Mitsunori Ogihara
    • 1
  1. 1.Department of Computer ScienceUniversity of MiamiMiamiUSA

Personalised recommendations