Different ways to initialize 2D array in C++

Arrays are the derived type in C++ that can hold values of same data type in contiguous memory allocation. In an array of size n, each value has an index number, starting from 0 till n-1.

We have explored different types to initialize 2D array in C++ like:

Sized array initialization Skipping values initialization Unsized array initialization Types

Arrays are of two types:

1.One-Dimensional Arrays
2.Multi-Dimensional Arrays

Two-Dimensional (2-D) Arrays

Multi-Dimensional Arrays comprise of...

 •  0 comments  •  flag
Share on Twitter
Published on December 08, 2020 12:53
No comments have been added yet.