none
Array of rank 3 RRS feed

  • Question

  • Hi ,

    Can anyone please help me with an example of an array with rank 3? Specifically how to assign values to that kind of an array using literals?

    Thanks


    Sougata Ghosh

    Sunday, July 22, 2018 8:22 AM

Answers

  • An example 4×2×3:

       Dim myArray(,,) As Integer = {

          {{0, 0, 0}, {0, 0, 0}},

          {{0, 0, 0}, {0, 0, 0}},

          {{0, 0, 0}, {0, 0, 0}},

          {{0, 0, 0}, {0, 0, 0}}

       }

     

    Place some numbers instead of zeroes.


    • Marked as answer by sougata12 Sunday, July 22, 2018 9:13 AM
    Sunday, July 22, 2018 8:53 AM