{"id":81083,"date":"2021-06-26T09:00:17","date_gmt":"2021-06-26T03:30:17","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=81083"},"modified":"2021-06-26T09:00:17","modified_gmt":"2021-06-26T03:30:17","slug":"multidimensional-arrays-in-c","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/","title":{"rendered":"Multidimensional Array in C"},"content":{"rendered":"<p>Single dimensional array only stores single data or information like marks of the student. But in some cases, you have to store complex data which have rows and columns. So, a single dimensional array can\u2019t have this type of feature. That\u2019s when a multidimensional array comes into play. You can manipulate the arrays by rearranging the elements by using functions like reshape, squeeze etc.<\/p>\n<h3>What is a Multidimensional array in C?<\/h3>\n<p>To put it short, with the help of a multidimensional array, you can create an array of arrays. In multidimensional arrays, data is stored in tabular format. Multidimensional arrays in C are used in computer research and analysis.<\/p>\n<h3>Types of C Multidimensional Array:-<\/h3>\n<p>Below are the types of multidimensional arrays:-<\/p>\n<p>1. Two Dimensional Array<\/p>\n<p>2. Three Dimensional Array<\/p>\n<p>3. Four Dimensional Array<\/p>\n<h3>Declaring multidimensional arrays in C<\/h3>\n<h4>1. Two Dimensional Array:-<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">datatype name[size_1][size_2];\n<\/pre>\n<p><b>Example:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int num1[2][3];\nfloat num2[5][6];\n<\/pre>\n<h4>2. Three Dimensional Array:-<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">datatype name[size_1][size_2][size_3];<\/pre>\n<p><b>Example:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int students[2][3][4];\nfloat bills[3][4][3];\n\n<\/pre>\n<h4>3. N-Dimensional Array:-<\/h4>\n<p>General Declaration of multidimensional array:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">type name[size1][size2]...[sizeN];<\/pre>\n<p><strong>1. type:<\/strong>&#8211; It denotes data type names like int, float etc.<\/p>\n<p><strong>2. name:<\/strong>&#8211; It denotes the name of the multidimensional array.<\/p>\n<p><strong>3. row-size:<\/strong>&#8211; Number of row elements.<\/p>\n<p><strong>4. column-size<\/strong>:- Number of column elements.<\/p>\n<h3>Implementation of Multidimensional Array in C<\/h3>\n<h4>1. Two Dimensional Array in C<\/h4>\n<p>Two Dimensional arrays are implemented using rows and columns. A 2-d array is a collection of 1-d arrays. Default format is row-major. It is the simplest form of multidimensional array.<\/p>\n<p><strong>Syntax:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">datatype name[size_1][size_2];<\/pre>\n<p><b>Example:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int num1[2][3];\n<\/pre>\n<p>In the above example, 2 is the number of rows and 3 is the number of columns.<\/p>\n<h4>Initialization of two dimensional array in C:-<\/h4>\n<p>There are two ways in which you can initialize a two dimensional array:-<\/p>\n<p><strong>Method 1:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int x[2][4] = {1 ,2 ,3 ,4 , 5 , 6 , 7 , 8}\n<\/pre>\n<p><span style=\"font-weight: 400\">Above array has 2 rows and 4 columns. And the elements will be stored from left to right.<\/span><\/p>\n<p><b>Method 2:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int x[2][4] = {{1,2,3,4}, {5,6,7,8}};\n<\/pre>\n<p><span style=\"font-weight: 400\">This method is a better one. Because it uses nested braces. In this, each set of inner braces represents one row. In the above array, there are 2 rows that\u2019s why there are 2 inner braces.<\/span><\/p>\n<p><b>Some other examples of initialization:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int m [2][3] = {{5,3} {4,7} {1,4} {10,4} {9,4}};\nint c[2][3] = {{2, 5, 0}, {-3, -5, 8}};        \nint c[2][3] = {{1, -3, 1}, {1, 7, 9}};              \nint c[2][3] = {1, -3, 1, -1, 7, 3};\n<\/pre>\n<p>Note:- It is very important to assign the second index so that the compiler can understand about the ending and start of the row.<\/p>\n<h3>Memory allocation of 2D Array:-<\/h3>\n<table style=\"height: 231px\" width=\"495\">\n<tbody>\n<tr>\n<td><\/td>\n<td><span style=\"font-weight: 400\">Column 0<\/span><\/td>\n<td><span style=\"font-weight: 400\">Column 1<\/span><\/td>\n<td><span style=\"font-weight: 400\">Column 2<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Row 0<\/span><\/td>\n<td><span style=\"font-weight: 400\">[0][0]<\/span><\/td>\n<td><span style=\"font-weight: 400\">[0][1]<\/span><\/td>\n<td><span style=\"font-weight: 400\">[0][2]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Row 1<\/span><\/td>\n<td><span style=\"font-weight: 400\">[1][0]<\/span><\/td>\n<td><span style=\"font-weight: 400\">[1][1]<\/span><\/td>\n<td><span style=\"font-weight: 400\">[1][2]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Row 2<\/span><\/td>\n<td><span style=\"font-weight: 400\">[2][0]<\/span><\/td>\n<td><span style=\"font-weight: 400\">[2][1]<\/span><\/td>\n<td><span style=\"font-weight: 400\">[2][2]<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400\">You can calculate the number of elements in the array by multiplying the number of rows and columns. From the above table, you can clearly see that 3 rows and 3 columns are present. So, the number of elements will be 9.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Suppose, you have a two dimensional array like this <\/span><b>x[i][j]<\/b><span style=\"font-weight: 400\">. Here, i is the row number and j is the column number.<\/span><\/p>\n<h3><b>Accessing elements of two-dimensional array:-<\/b><\/h3>\n<p><span style=\"font-weight: 400\">In a 2d array, elements are accessed using rows and columns.\u00a0<\/span><\/p>\n<p><b>Example:- Accessing elements of 2d array<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\nint main()\n{\n\/\/ array of 3 rows and 4 columns!\nint x[3][4] = {{1,2,-3}, {7,3,8}, {-1,7,5}};\nprintf(\"TechVidvan Tutorials: Accessing elements of 2d array!\");\nfor (int i = 0; i &lt; 3; i++)\n{\nfor (int j = 0; j &lt; 2; j++){\nprintf(\"Value of Element[%d][%d]: %d\\n\",i,j,x[i][j]);\n}\n}\nreturn 0;\n}\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">TechVidvan Tutorials: Accessing elements of 2d array!Value of Element[0][0]: 1<br \/>\nValue of Element[0][1]: 2<br \/>\nValue of Element[1][0]: 7<br \/>\nValue of Element[1][1]: 3<br \/>\nValue of Element[2][0]: -1<br \/>\nValue of Element[2][1]: 7<\/div>\n<p><span style=\"font-weight: 400\">In the above example, we have used nested for loops to output all the elements of the array. One for loop is to traverse the rows and the other one is to traverse the columns.<\/span><\/p>\n<p><b>Example:- Sum of two matrices<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\nint main()\n{\nint a[2][2]={{2,4},{4,8}};\nint b[2][2]={{3,5},{6,-1}};\nint final[2][2];\nprintf(\"Welcome to TechVidvan Tutorials..\\n\\n\");\n\/\/ adding two arrays\nfor (int i = 0; i &lt; 2; ++i)\nfor (int j = 0; j &lt; 2; ++j)\n{\nfinal[i][j] = a[i][j] + b[i][j];\n}\nprintf(\"Sum Of Matrix:\\n\");\nfor (int i = 0; i &lt; 2; ++i)\nfor (int j = 0; j &lt; 2; ++j)\n{\nprintf(\"%d\\t\", final[i][j]);\nif (j == 1)\nprintf(\"\\n\");\n}\nreturn 0;\n}\t\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">Welcome to TechVidvan Tutorials..Sum Of Matrix:<br \/>\n5\u00a0 \u00a0 \u00a09<br \/>\n10\u00a0 \u00a07<\/div>\n<h3>Three Dimensional Array:-<\/h3>\n<p>It is defined as an array of arrays. You need more than three dimensions to implement a 3d array. If you are a beginner then it will look messy to you. But once you keep practicing then it will get easier to understand.<\/p>\n<p><strong>Syntax:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">datatype name[size_1][size_2][size_3];<\/pre>\n<p><b>Example:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int marks[2][3][2];\n<\/pre>\n<p>Here, the array named marks hold 12 elements.<\/p>\n<h4>1. Initialization of 3 dimensional array in C<\/h4>\n<p>3d array initialization is the same way as the initialization of two dimensional arrays. The only difference is that in a 3d array, the number of dimensions increases. Due to that, the number of nested braces will also increase.<\/p>\n<h5>Method 1:-<\/h5>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int x[2][2][2] = {9, 10, 5, 6, 7, 9, 2, 2};\n<\/pre>\n<h5><b>Method 2:- (A Better one)<\/b><\/h5>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int x[2][2][2] = {{{9,10},{5,6}},{{7,9},{2,2}}};<\/pre>\n<h4>Accessing elements in three dimensional array:-<\/h4>\n<p>Accessing elements in a three dimensional array is pretty much the same as a two dimensional array. The only difference is that you have to use three loops for the extra addition of a dimension in a three dimensional array.<\/p>\n<p><strong>Basic example of a three dimensional array:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\nint main()\n{\nint x[2][2][2] = {{{9,10},{5,6}},{{7,9},{2,2}}};\n\/\/ implementing a 3d array!\nprintf(\"TechVidvan Tutorial: Accessing elements of 3d array!\");\nfor (int i = 0; i &lt; 2; ++i){\nfor (int j = 0; j &lt; 2; ++j){\nfor (int k = 0; k &lt; 2; ++k){\nprintf(\"Value of Element[%d][%d][%d]: %d\\n\",i,j,k,x[i][j][k]);\n}\n}\n}\nreturn 0;\n}\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">TechVidvan Tutorial: Accessing elements of 3d array!Value of Element[0][0][0]: 9<br \/>\nValue of Element[0][0][1]: 10<br \/>\nValue of Element[0][1][0]: 5<br \/>\nValue of Element[0][1][1]: 6<br \/>\nValue of Element[1][0][0]: 7<br \/>\nValue of Element[1][0][1]: 9<br \/>\nValue of Element[1][1][0]: 2<br \/>\nValue of Element[1][1][1]: 2<\/div>\n<p><span style=\"font-weight: 400\">In the above example, we have used nested for loops to output all the elements of the array.\u00a0<\/span><\/p>\n<p><b>Example:- Sum of matrices in a 3d array<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\nint main()\n{\nint a[2][2][2]={{{9,1},{5,-6}},{{7,9},{2,5}}};\nint b[2][2][2]={{{0,-9},{4,6}},{{2,9},{3,2}}};\nint final[2][2][2];\nprintf(\"TechVidvan Tutorial: Sum of matrices in a 3d array!\");\n\/\/ adding 3d array\nfor (int i = 0; i &lt; 2; ++i){\nfor (int j = 0; j &lt; 2; ++j){\nfor(int k=0; k&lt;2; ++k){\nfinal[i][j][k] = a[i][j][k] + b[i][j][k];\n}\n}\n}\nprintf(\"Sum Of Matrix:\\n\");\nfor (int i = 0; i &lt; 2; ++i){\nfor (int j = 0; j &lt; 2; ++j){\nfor (int k=0; k &lt; 2; ++k)\n{\nprintf(\"%d\\t\", final[i][j][k]);\n}\n}\n}\nreturn 0;\n}\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">TechVidvan Tutorial: Sum of matrices in a 3d array!Sum Of Matrix:<br \/>\n9\u00a0 \u00a0-8\u00a0 \u00a09\u00a0 \u00a00\u00a0 \u00a09\u00a0 \u00a018\u00a0 \u00a05\u00a0 \u00a07<\/div>\n<h3>Four-Dimensional Array in C<\/h3>\n<p>It is very difficult to implement. It is an array of three dimensional arrays. It\u2019s a messy one.<\/p>\n<p><strong>Syntax:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">datatype name[size_1][size_2][size_3][size_4];<\/pre>\n<p><b>Example:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int students [4][2][7][5];\n<\/pre>\n<p><b>Basic Example of 4d array in C:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\nint main()\n{\nint a, b, c, d, f;\nint s[2][2][2][2];\ns[0][0][0][0] = 0;\ns[0][0][0][1] = 3;\ns[0][0][1][0] = 5;\ns[0][0][1][1] = 6;\ns[0][1][0][0] = 1;\ns[0][1][0][1] = 12;\ns[0][1][1][0] = -1;\ns[0][1][1][1] = 2;\ns[1][0][0][0] = 4;\ns[1][0][0][1] = 9;\ns[1][0][1][0] = 7;\ns[1][0][1][1] = 1;\ns[1][1][0][0] = 0;\ns[1][1][0][1] = 7;\ns[1][1][1][0] = -5;\ns[1][1][1][1] = 2;\nprintf(\"TechVidvan Tutorial: Basic example of 4d array!\");\nfor (a = 0; a &lt; 2; a++) {\nfor (b = 0; b &lt; 2; b++) {\nfor (c = 0; c &lt; 2; c++) {\nfor (d = 0; d &lt; 2; d++) {\nprintf(\"Value of Elements[%d][%d][%d][%d]: %d \", a, b, c, d, s[a][b][c][d]);\nprintf(\"\\n\");\n}\n}\n}\n}\nreturn 0;\n}\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">TechVidvan Tutorial: Basic example of 4d array!Value of Elements[0][0][0][0]: 0<br \/>\nValue of Elements[0][0][0][1]: 3<br \/>\nValue of Elements[0][0][1][0]: 5<br \/>\nValue of Elements[0][0][1][1]: 6<br \/>\nValue of Elements[0][1][0][0]: 1<br \/>\nValue of Elements[0][1][0][1]: 12<br \/>\nValue of Elements[0][1][1][0]: -1<br \/>\nValue of Elements[0][1][1][1]: 2<br \/>\nValue of Elements[1][0][0][0]: 4<br \/>\nValue of Elements[1][0][0][1]: 9<br \/>\nValue of Elements[1][0][1][0]: 7<br \/>\nValue of Elements[1][0][1][1]: 1<br \/>\nValue of Elements[1][1][0][0]: 0<br \/>\nValue of Elements[1][1][0][1]: 7<br \/>\nValue of Elements[1][1][1][0]: -5<br \/>\nValue of Elements[1][1][1][1]: 2<\/div>\n<h3>Summary<\/h3>\n<p>This was all about Multidimensional array in C. Most used multidimensional array in C is Two Dimensional Array. In these types of arrays, indices provide a key role as they define an element.<\/p>\n<p>Four dimensional array is a messy one. It\u2019s difficult to implement. Multidimensional arrays in C are used in computer research and analysis.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Single dimensional array only stores single data or information like marks of the student. But in some cases, you have to store complex data which have rows and columns. So, a single dimensional array&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":81347,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3510],"tags":[3631,3632,3633,3634],"class_list":["post-81083","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-programming","tag-multidimensional-array-in-c","tag-multidimensional-arrays-in-c","tag-three-dimensional-array-in-c","tag-two-dimensional-array-in-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Multidimensional Array in C - TechVidvan<\/title>\n<meta name=\"description\" content=\"Learn what is multidimensional Array in C. Learn about 2 dimensional, 3 dimensional, 4 dimensional with implementation,initialization,example\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Multidimensional Array in C - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Learn what is multidimensional Array in C. Learn about 2 dimensional, 3 dimensional, 4 dimensional with implementation,initialization,example\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-26T03:30:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Multidimensional-Arrays-in-C.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Multidimensional Array in C - TechVidvan","description":"Learn what is multidimensional Array in C. Learn about 2 dimensional, 3 dimensional, 4 dimensional with implementation,initialization,example","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/","og_locale":"en_US","og_type":"article","og_title":"Multidimensional Array in C - TechVidvan","og_description":"Learn what is multidimensional Array in C. Learn about 2 dimensional, 3 dimensional, 4 dimensional with implementation,initialization,example","og_url":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-06-26T03:30:17+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Multidimensional-Arrays-in-C.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Multidimensional Array in C","datePublished":"2021-06-26T03:30:17+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/"},"wordCount":928,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Multidimensional-Arrays-in-C.jpg","keywords":["Multidimensional Array in C","Multidimensional Arrays in C","three dimensional array in c","two dimensional array in c"],"articleSection":["C Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/","url":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/","name":"Multidimensional Array in C - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Multidimensional-Arrays-in-C.jpg","datePublished":"2021-06-26T03:30:17+00:00","description":"Learn what is multidimensional Array in C. Learn about 2 dimensional, 3 dimensional, 4 dimensional with implementation,initialization,example","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Multidimensional-Arrays-in-C.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Multidimensional-Arrays-in-C.jpg","width":1200,"height":628,"caption":"Multidimensional Array in C"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/multidimensional-arrays-in-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Multidimensional Array in C"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/81083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=81083"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/81083\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/81347"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=81083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=81083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=81083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}