Home c++ How to present a four-dimensional array?

How to present a four-dimensional array?

Author

Date

Category

Two-dimensional array:

int mas [2] [3] =

{

{1,2,3},

{1,2,3},

}

i.e. 3 Values and 2 lines.

three-dimensional array:

int mas [4] [2] [3] =

{

{1,2,3}, {1,2,3}, {1,2,3}, {1,2,3},

{1,2,3}, {1,2,3}, {1,2,3}, {1,2,3},

}

i.e. The same thing is that a two-dimensional array of only 4 measurements.

And how to imagine and write in such a format 4 dimensional array?


Answer 1, Authority 100%

int miss [2] [2] [2] [2] =
{
  {
   {
    {1,2}, {1,2}
   },
   {
    {1,2}, {1,2}
   }
  },
  {
   {
    {1,2}, {1,2}
   },
   {
    {1,2}, {1,2}
   }
  }
}

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions