About 1,270,000 results
Open links in new tab
  1. c++ - Declaring a pointer to multidimensional array and …

    Oct 11, 2010 · Personally, my preference is to use a syntactic trick to declare a pointer to the dynamically sized multi-dimensional array. This works in compilers that support Variable Length Arrays (VLAs), which all C++ compilers should, and most current C …

  2. C++ Multidimensional Arrays - Tpoint Tech - Java

    Apr 8, 2025 · Two-dimensional arrays (2D arrays) serve as the most popular multidimensional constructs while C++ provides support for three-dimensional (3D), four-dimensional (4D) and additional higher-dimension arrays.

  3. C++ Multidimensional Array - GeeksforGeeks

    Mar 6, 2025 · A multidimensional array is an array with more than one dimension. It means that it can grow in different directions i.e. instead of changing the length only, it can also change in width, depth or more. It is the homogeneous collection of items where each element is accessed using multiple indices. Create Multidimensional Array C++

    Missing:

    • Java Point

    Must include:

  4. Java Multi-Dimensional Arrays - GeeksforGeeks

    Jan 8, 2025 · Multidimensional arrays in Java are not stored in tabular form. Each row is independently heap allocated, making it possible to have arrays with different row sizes. Example: Syntax for Multi-Dimensional Array. data_type[1st dimension] [2nd dimension] [].. [Nth dimension] array_name = new data_type[size1] [size2]…. [sizeN]; Parameters:

  5. How to iterate a Multidimensional Array? - GeeksforGeeks

    Nov 7, 2022 · Multidimensional arrays are arrays that have more than one dimension. For example, a simple array is a 1-D array, a matrix is a 2-D array, and a cube or cuboid is a 3-D array but how to visualize arrays with more than 3 dimensions, and how to iterate over elements of these arrays?

    Missing:

    • Java Point

    Must include:

  6. Multidimensional arrays in Java and C# - Stack Overflow

    Dec 4, 2012 · Java does not support true multi-dimensional arrays; that's a jagged array. The Java syntax automatically creates all of the inner arrays; in C#, that would need a separate loop. Nested arrays are fundamentally slower than true multi-dimensional arrays.

  7. Initialising a multidimensional array in Java - Stack Overflow

    Dec 4, 2013 · String[][] myStringArray = new String [x][y]; is the correct way to initialise a rectangular multidimensional array. If you want it to be jagged (each sub-array potentially has a different length) then you can use code similar to this answer.

  8. C++ Multidimensional Arrays (2nd and 3d arrays) - Programiz

    In this tutorial, we'll learn about multi-dimensional arrays in C++. More specifically, how to declare them, access them, and use them efficiently in our program.

    Missing:

    • Java Point

    Must include:

  9. C++ Multi-Dimensional Arrays - Online Tutorials Library

    Multidimensional arrays may be initialized by specifying bracketed values for each row. Following is an array with 3 rows and each row has 4 columns. The nested braces, which indicate the intended row, are optional. The following initialization is equivalent to the previous example −.

  10. Pointers and Multidimensional Arrays in C/C++ - Medium

    Aug 20, 2024 · Pointers are powerful tools for managing arrays and memory in C/C++. Multidimensional arrays can be accessed and manipulated efficiently using pointers.

  11. Some results have been removed
Refresh