{"id":14401,"date":"2022-10-07T17:28:10","date_gmt":"2022-10-07T11:58:10","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/"},"modified":"2022-10-07T17:28:10","modified_gmt":"2022-10-07T11:58:10","slug":"solved-2d-array-difference-in-c-and-c","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/","title":{"rendered":"[Solved] 2D array difference in C and C++"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-53029259\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"53029259\" data-parentid=\"53027203\" data-score=\"4\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p><strong>Arrays vs. pointers<\/strong> is probably one of the harder topics of C (and C++ which inherited that from C). It&#8217;s actually easy once you understood the concept behind but that concept might be unexpected by starters \u2013 I never saw anything similar in other programming languages.<\/p>\n<p>Borgleader told in his comment: <s><code>int a[3][3]<\/code> decays to <code>int*<\/code><\/s> but that&#8217;s false! (If it were true the issue of OP wouldn&#8217;t exist.)<\/p>\n<p>The trueth is:<\/p>\n<ol>\n<li><code>a<\/code> is of type <code>int [3][3]<\/code>.<\/li>\n<li><code>a<\/code> may decay to <code>int (*)[3]<\/code> (<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cdecl.org\/?q=int+%28*a%29%5B3%5D\">a pointer to array 3 of int<\/a>)<\/li>\n<\/ol>\n<p>Hence, the definition of OP has type mismatch errors:<\/p>\n<pre><code>int *p[3] = {a+0, a+1, a+2};\n<\/code><\/pre>\n<p>The elements of <code>p<\/code> have type <code>int*<\/code> but <code>a+0<\/code> (as well as <code>a+1<\/code>, <code>a+2<\/code>) provide an expression of <code>int (*)[3]<\/code>.<\/p>\n<p>This is exactly what clang tells in the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/wandbox.org\/permlink\/ziLPtA1Rz2uGPPYe\"><strong>Live Demo of Bob__ on Wandbox<\/strong><\/a>:<\/p>\n<pre><code>prog.c:7:18: warning: incompatible pointer types initializing 'int *' with an expression of type 'int (*)[3]' [-Wincompatible-pointer-types]\n    int *p[3] = {a+0, a+1, a+2};\n                 ^~~\n<\/code><\/pre>\n<p>Bob__ used C with <code>-std=c11<\/code> and <code>-pedantic<\/code>.<\/p>\n<p>I changed it to C++ with <code>-std=c++17<\/code> and no <code>-pedantic<\/code>. C++ reports this as error because it&#8217;s by default much stricter concerning type compatibility.<\/p>\n<hr>\n<blockquote>\n<p>Actually, I was confused by a comment on Quora which had this example.<\/p>\n<\/blockquote>\n<p>Considering that C has ever been quite tolerant concerning non-matching types, the example might have worked. To illustrate this, I made a slightly extended example on godbolt.org:<\/p>\n<pre><code>#include &lt;stdio.h&gt;\n\nint main()\n{\n  int a[3][3] = {{10,20,30},{40,50,60},{70,80,90}};\n  int *p[3] = { a + 0, a + 1, a + 2 };\n  int *p1[3] = { *(a + 0), *(a + 1), *(a + 2) };\n  int *p2[3] = { a[0], a[1], a[2] };\n  return 0;\n}\n<\/code><\/pre>\n<p>For <code>int *p[3] = { a + 0, a + 1, a + 2 };<\/code> it compiled:<\/p>\n<pre><code>  mov rcx, qword ptr [rbp - 168] # load rcx with address of a\n  mov qword ptr [rbp - 80], rcx  # store rcx to p[0] \n  mov rcx, qword ptr [rbp - 168] # load rcx with address of a\n  add rcx, 12                    # add 12 to rcx (1 * 3 * sizeof (int))\n  mov qword ptr [rbp - 72], rcx  # store rcx to p[1]\n  mov rcx, qword ptr [rbp - 168] # load rcx with address of a\n  add rcx, 24                    # add 24 to rcx (2 * 3 * sizeof (int))\n  mov qword ptr [rbp - 64], rcx  # store rcx to p[2]\n<\/code><\/pre>\n<p>for <code>int *p1[3] = { *(a + 0), *(a + 1), *(a + 2) };<\/code>:<\/p>\n<pre><code>  mov rcx, qword ptr [rbp - 168] # load rcx with address of a\n  mov qword ptr [rbp - 112], rcx # store rcx to p1[0]  \n  add rcx, 12                    # add 12 to rcx (1 * 3 * sizeof (int))\n  mov qword ptr [rbp - 104], rcx # store rcx to p1[1] \n  mov rcx, qword ptr [rbp - 168] # load rcx with address of a\n  add rcx, 24                    # add 24 to rcx (2 * 3 * sizeof (int))\n  mov qword ptr [rbp - 96], rcx  # store rcx to p1[2]\n<\/code><\/pre>\n<p>for <code>int *p2[3] = { a[0], a[1], a[2] };<\/code>:<\/p>\n<pre><code>  mov rcx, qword ptr [rbp - 168] # load rcx with address of a\n  mov qword ptr [rbp - 144], rcx # store rcx to p2[0]  \n  add rcx, 12                    # add 12 to rcx (1 * 3 * sizeof (int))\n  mov qword ptr [rbp - 136], rcx # store rcx to p2[1] \n  mov rcx, qword ptr [rbp - 168] # load rcx with address of a\n  add rcx, 24                    # add 24 to rcx (2 * 3 * sizeof (int))\n  mov qword ptr [rbp - 128], rcx # store rcx to p2[2]\n<\/code><\/pre>\n<p><kbd><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/gcc.godbolt.org\/z\/t5kVSN\"><strong>Live Demo on godbolt<\/strong><\/a><\/kbd><\/p>\n<p>Without going into too much depth, nearly the same code has been produced for all three lines. (The only differences are the addresses after <code>mov qword ptr [rbp -<\/code>&#8230; as the initializations are stored into variables which have different addresses on stack, of course.)<\/p>\n<p>It&#8217;s not that surprising that <code>*(a + 0)<\/code> and <code>a[0]<\/code> result in equivalent code because according to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.cppreference.com\/w\/c\/language\/operator_member_access\">cppreference: Subscript<\/a>:<\/p>\n<blockquote>\n<p>By definition, the subscript operator <code>E1[E2]<\/code> is exactly identical to <code>*((E1)+(E2))<\/code>.<\/p>\n<\/blockquote>\n<p>but even the initialization with pointers of wrong types didn&#8217;t make a difference.<\/p>\n<p>IMHO, this is good for two lessons:<\/p>\n<ol>\n<li>\n<p>Using correct types by introducing the necessary dereference operators prevents warnings (in C), errors (in C++).<\/p>\n<\/li>\n<li>\n<p>Optimizing away dereference operators (at the cost of warnings) doesn&#8217;t improve the generated binary code.<\/p>\n<\/li>\n<\/ol>\n<hr>\n<p>In another comment, the OP stated that<\/p>\n<blockquote>\n<p>To my understanding &#8220;a&#8221; is a pointer to the whole array&#8230;<\/p>\n<\/blockquote>\n<p>That&#8217;s wrong. <code>a<\/code> is an array. It may decay to a pointer if required.<\/p>\n<p>That&#8217;s a difference, and it&#8217;s easy to illustrate by an example:<\/p>\n<pre><code>#include &lt;stdio.h&gt;\n\nvoid printSizes(int a[3][3], int (*p)[3])\n{\n  puts(\"when a and p passed to a function:\");\n  printf(\"sizeof a: %u\\n\", (unsigned)sizeof a);\n  printf(\"sizeof p: %u\\n\", (unsigned)sizeof p);\n}\n\nint main()\n{\n  int a[3][3] = {{10,20,30},{40,50,60},{70,80,90}};\n  int (*p)[3] = { a + 0, a + 1, a + 2 };\n  printf(\"sizeof a: %u\\n\", (unsigned)sizeof a);\n  printf(\"sizeof p: %u\\n\", (unsigned)sizeof p);\n  return 0;\n}\n<\/code><\/pre>\n<p>Output:<\/p>\n<pre class=\"lang-none prettyprint-override\"><code>sizeof a: 36\nsizeof p: 8\nwhen a and p passed to a function:\nsizeof a: 8\nsizeof p: 8\n<\/code><\/pre>\n<p><kbd><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/ideone.com\/pg0XZC\"><strong>Live Demo on ideone<\/strong><\/a><\/kbd><\/p>\n<p>The confusion about arrays and pointers comes probably from the fact that arrays decay in most cases to pointers. Even the subscript operator (<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.cppreference.com\/w\/c\/language\/operator_member_access#Subscript\"><code>operator[]<\/code><\/a>) is defined for pointers but not for arrays. The <code>sizeof<\/code> operator is one of the few exceptions and shows the difference.<\/p>\n<p>As arrays may not be used as arguments, there is no such difference anymore in function <code>printSize()<\/code>. Even with giving the array type the compiler uses the pointer type resulting from array decay.<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">3<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved 2D array difference in C and C++ <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Arrays vs. pointers is probably one of the harder topics of C (and C++ which inherited that from C). It&#8217;s actually easy once you understood the concept behind but that concept might be unexpected by starters \u2013 I never saw anything similar in other programming languages. Borgleader told in his comment: int a[3][3] decays &#8230; <a title=\"[Solved] 2D array difference in C and C++\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/\" aria-label=\"More on [Solved] 2D array difference in C and C++\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[324],"class_list":["post-14401","post","type-post","status-publish","format-standard","hentry","category-solved","tag-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] 2D array difference in C and C++ - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] 2D array difference in C and C++ - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Arrays vs. pointers is probably one of the harder topics of C (and C++ which inherited that from C). It&#8217;s actually easy once you understood the concept behind but that concept might be unexpected by starters \u2013 I never saw anything similar in other programming languages. Borgleader told in his comment: int a[3][3] decays ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-07T11:58:10+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] 2D array difference in C and C++\",\"datePublished\":\"2022-10-07T11:58:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/\"},\"wordCount\":457,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"c++\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/\",\"name\":\"[Solved] 2D array difference in C and C++ - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2022-10-07T11:58:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] 2D array difference in C and C++\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] 2D array difference in C and C++ - JassWeb","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:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] 2D array difference in C and C++ - JassWeb","og_description":"[ad_1] Arrays vs. pointers is probably one of the harder topics of C (and C++ which inherited that from C). It&#8217;s actually easy once you understood the concept behind but that concept might be unexpected by starters \u2013 I never saw anything similar in other programming languages. Borgleader told in his comment: int a[3][3] decays ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/","og_site_name":"JassWeb","article_published_time":"2022-10-07T11:58:10+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] 2D array difference in C and C++","datePublished":"2022-10-07T11:58:10+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/"},"wordCount":457,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["c++"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/","url":"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/","name":"[Solved] 2D array difference in C and C++ - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-10-07T11:58:10+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-2d-array-difference-in-c-and-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] 2D array difference in C and C++"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/14401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=14401"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/14401\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=14401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=14401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=14401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}