---
title: "Discussion on \"Creating 2D array by different ways?\" | Hashnode"
description: "Discussion on \"Creating 2D array by different ways?\". // 1) Simple One to Create 2D array\n\n  int arr[3][2]={{1,2},\n                 {3,4},\n                 {5,6}};\n    for (int i = 0; i < 3; i++)\n    {\n     for (int j = 0; j < 2; j++)\n     {\n      cout<<arr[i][j]<<\" \";\n     }\n     cout<<endl;\n\n    }\n// ..."
url: "https://hashnode.com/posts/creating-2d-array-by-different-ways/6501a51744d397ec1a7c8f2a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating 2D array by different ways?](https://rahulxf.dev/creating-2d-array-by-different-ways?utm_source=hashnode&utm_medium=feed)

// 1) Simple One to Create 2D array int arr\[3\]\[2\]={{1,2}, {3,4}, {5,6}}; for (int i = 0; i < 3; i++) { for (int j = 0; j < 2; j++) { cout<<arr\[i\]\[j\]<<" "; } cout<<endl; } // ...

Sep 13, 2023 · 2 min read · rahulxf.dev  
Read the article

-   [#array](https://hashnode.com/tag/array)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#dsa](https://hashnode.com/tag/dsa)

## Written by

[Rahul Vishwakarma](https://hashnode.com/@manzilXf)

@manzilXf · Gorakhpur,UP,India

  
[View profile](https://hashnode.com/@manzilXf)

Developer

I am Developer learning new skills and tools And currently pursuing B.Tech in CSE (Graduating Year 2026)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
