{"id":24491,"date":"2022-12-03T09:17:04","date_gmt":"2022-12-03T03:47:04","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/"},"modified":"2022-12-03T09:17:04","modified_gmt":"2022-12-03T03:47:04","slug":"solved-how-to-access-array-of-pointer-to-structure-closed","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/","title":{"rendered":"[Solved] How to access array of pointer to structure [closed]"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-31730068\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"31730068\" data-parentid=\"31729171\" data-score=\"0\" data-position-on-page=\"2\" data-highest-scored=\"0\" data-question-has-accepted-highest-score=\"0\" itemprop=\"suggestedAnswer\" 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><code>constructArray<\/code> doesn&#8217;t actually do anything relevant, set aside leaking memory. Same for <code>printArray<\/code>.<br \/>\nI guess you began to code in c++ not that long ago, the code you&#8217;ve written does the following:  <\/p>\n<pre><code>void constructArray (No *Number, int size) {\n  \/\/ allocates enough memory to store n=size pointers to No then constructs them\n  \/\/ stores the address of that memory in temp\n  No **temp = new No *[size];\n\n  \/\/ for each pointer to No *temp, *(temp+1), ..., *(temp+size-1)\n  for (int i = 0; i &lt; size; i++)\n  { \n    \/\/ allocates enough space to store a No, constructs a No, and assigns\n    \/\/ its address to *(temp+i)\n    temp[i] = new No;\n    \/\/ initializes the values of the newly allocated No\n    temp[i]-&gt;decimal = rand() % 1000;\n    temp[i]-&gt;binary = \"0\";\n    temp[i]-&gt;octal = \"0\";\n    temp[i]-&gt;hexadecimal = \"0\";\n  }\n  \/\/ discards temp, effectively leaking the memory allocated in this function\n}\n\nvoid printArray (No *Number, int size) {\n  \/\/ prints a string\n  cout &lt;&lt; \"Decimal\\t\" &lt;&lt; \"Binary\\t\\t\\t\" &lt;&lt; \"Octal\\t\\t\" &lt;&lt; \"Hexadecimal\" &lt;&lt; endl;\n  \/\/ allocates enough memory to store n=size pointers to No then constructs them\n  \/\/ stores the address of that memory in temp\n  No **temp = new No *[size];\n\n  \/\/ for each pointer to No *temp, *(temp+1), ..., *(temp+size-1)\n  for (int i = 0; i &lt; size; i++) {\n    \/\/ allocates enough space to store a No, constructs a No, and assigns\n    \/\/ its address to *(temp+i)\n    temp[i] = new No;\n    \/\/ prints the content of the newly allocated No\n    cout &lt;&lt; temp[i]-&gt;decimal &lt;&lt; \"\\t\"\n        &lt;&lt; temp[i]-&gt;binary &lt;&lt; \"\\t\\t\\t\"\n        &lt;&lt; temp[i]-&gt;octal &lt;&lt; \"\\t\\t\"\n        &lt;&lt; temp[i]-&gt;hexadecimal &lt;&lt; endl;\n  }\n  \/\/ discards temp, effectively leaking the memory allocated in this function\n}\n<\/code><\/pre>\n<p>There are several oddities and many things wrong with your code:<\/p>\n<ul>\n<li>\n<p>as melpomene stated in the comments, you&#8217;re not using some parameters of your functions (sometimes, its actual useful to define unused parameters but not in this case)<\/p>\n<\/li>\n<li>\n<p>you forget to either return or delete what you have dynamically allocated in your function<\/p>\n<\/li>\n<li>\n<p>you make too many dynamic allocations (in particular in printArray where no dynamic allocation should be needed)<\/p>\n<\/li>\n<li>\n<p>you assign string literals to <code>char*<\/code>, you should either store them in <code>const char*<\/code> or manually allocate the memory (a string literal will be stored in the data segment, and the data segment shouldn&#8217;t be mutable, that&#8217;s why the standard forbids it) some compilers will accept it with a warning though, but it&#8217;s not clean<\/p>\n<\/li>\n<li>\n<p>you use a pointer to pointer to <code>No<\/code> to dynamically allocate an array of <code>No<\/code>s<\/p>\n<\/li>\n<li>\n<p>you also uselessly split the strings in <code>std::cout<\/code> calls and delegate the initialization of a <code>No<\/code> to <code>constructArray<\/code>rather than to <code>No<\/code>&#8216;s constructor<\/p>\n<\/li>\n<\/ul>\n<p>I think what you actually want to write is the following:<\/p>\n<pre><code>#include &lt;iostream&gt;\n#include &lt;ctime&gt;\n\nusing namespace std; \/\/ i usually avoid this\n\nstruct No {\n  \/\/ No constructor, each time you \"construct\" a No instance, this function will\n  \/\/ be called (the No() : var(value), ... syntax is called a member\n  \/\/ initializer list, it's specific to constructors)\n  No() : \n  decimal(rand() % 1000),\n  binary(\"0\"),\n  octal(\"0\"),\n  hexadecimal(\"0\")\n  {}\n\n  int decimal;\n  const char *binary;\n  const char *octal;\n  const char *hexadecimal;\n};\n\nvoid constructArray (No*&amp; arrayDestination, int size) {\n  \/\/ allocates enough memory for n=size No and constructs them\n  \/\/ then stores the address of this allocated memory in arrayDestination\n  arrayDestination = new No[size];\n  \/\/ NOTE: arrayDestination is a reference to a pointer to No, which means\n  \/\/       that you'll actually modfiy the parameter used by the caller\n  \/\/ in other words:\n  \/\/\n  \/\/ No* ptr = nullptr;\n  \/\/ constructArray(ptr, size);\n  \/\/\n  \/\/ will actually modify ptr, another way would be to return the pointer\n  \/\/ with the return value of constructArray\n\n  \/\/ no need to initialize the No allocated here, new[] already called the\n  \/\/ constructor\n}\n\nvoid printArray (No* array, int size) {\n  \/\/ no need to split the string here...\n  cout &lt;&lt; \"Decimal\\tBinary\\t\\t\\tOctal\\t\\tHexadecimal\" &lt;&lt; endl;\n  \/\/ don't reallocate an array, the array has always been constructed, why would\n  \/\/ you want another one? (plus an uninitialized one...)\n  for (int i = 0; i &lt; size; i++) {\n    \/\/ actually use the first parameter!\n    \/\/ NOTE: now, this isn't a reference (No* instead of No*&amp;) because we\n    \/\/       don't need to modify this parameter, the parameter is actually\n    \/\/       copied when we call the function\n    cout &lt;&lt; array[i].decimal &lt;&lt; \"\\t\"\n    &lt;&lt; array[i].binary &lt;&lt; \"\\t\\t\\t\"\n    &lt;&lt; array[i].octal &lt;&lt; \"\\t\\t\"\n    &lt;&lt; array[i].hexadecimal &lt;&lt; endl;\n  }\n}\n\nint main() {\n  \/\/ if you use rand, you should call srand first to initialize the random\n  \/\/ number generator (also note that rand is deprecated)\n  srand(time(nullptr));\n  \/\/ NOTE: time(nullptr) returns the current timestamp\n  \/\/       it's sometimes used as a pseudo-random \"seed\" to initialize a\n  \/\/       generator\n\n  \/\/ this will be a pointer to the first element of our \"arrray\"\n  No *array = nullptr;\n  \/\/ this instruction is valid and will give you an integer between 1 and 9\n  int size = (rand() % 9) + 1;\n  \/\/ now we call the corrected functions\n  constructArray(array, size);\n  printArray(array, size);\n  \/\/ you should actually release the array once you're finished using it\n  \/\/ the clean way would be to implement a \"releaseArray\" function, \n  \/\/ but i'm lazy, so i'll just do it here:\n  delete[] array;\n  \/\/ don't forget main returns an int! 0 is usually the code for \"nothing bad happened\"\n  return 0;\n}\n<\/code><\/pre>\n<p>Even better, replace the dynamically allocated array of <code>No<\/code> by a <code>std::vector&lt;No&gt;<\/code> and the <code>const char*<\/code> by <code>std::string<\/code> (if you want them to be mutable). That way you won&#8217;t need a function to build\/release the array anymore.<\/p>\n<p>Edit: mmh it took me a bit too much time to post that<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">0<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved How to access array of pointer to structure [closed] <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] constructArray doesn&#8217;t actually do anything relevant, set aside leaking memory. Same for printArray. I guess you began to code in c++ not that long ago, the code you&#8217;ve written does the following: void constructArray (No *Number, int size) { \/\/ allocates enough memory to store n=size pointers to No then constructs them \/\/ stores &#8230; <a title=\"[Solved] How to access array of pointer to structure [closed]\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/\" aria-label=\"More on [Solved] How to access array of pointer to structure [closed]\">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":[361,324,712,458],"class_list":["post-24491","post","type-post","status-publish","format-standard","hentry","category-solved","tag-arrays","tag-c","tag-pointers","tag-struct"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Solved] How to access array of pointer to structure [closed] - 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-how-to-access-array-of-pointer-to-structure-closed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] How to access array of pointer to structure [closed] - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] constructArray doesn&#8217;t actually do anything relevant, set aside leaking memory. Same for printArray. I guess you began to code in c++ not that long ago, the code you&#8217;ve written does the following: void constructArray (No *Number, int size) { \/\/ allocates enough memory to store n=size pointers to No then constructs them \/\/ stores ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-03T03:47:04+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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-how-to-access-array-of-pointer-to-structure-closed\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-how-to-access-array-of-pointer-to-structure-closed\\\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] How to access array of pointer to structure [closed]\",\"datePublished\":\"2022-12-03T03:47:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-how-to-access-array-of-pointer-to-structure-closed\\\/\"},\"wordCount\":272,\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"keywords\":[\"arrays\",\"c++\",\"pointers\",\"struct\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-how-to-access-array-of-pointer-to-structure-closed\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-how-to-access-array-of-pointer-to-structure-closed\\\/\",\"name\":\"[Solved] How to access array of pointer to structure [closed] - JassWeb\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\"},\"datePublished\":\"2022-12-03T03:47:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-how-to-access-array-of-pointer-to-structure-closed\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-how-to-access-array-of-pointer-to-structure-closed\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-how-to-access-array-of-pointer-to-structure-closed\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] How to access array of pointer to structure [closed]\"}]},{\"@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\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\\\/\\\/jassweb.com\"],\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/author\\\/jaspritsinghghumangmail-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] How to access array of pointer to structure [closed] - 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-how-to-access-array-of-pointer-to-structure-closed\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] How to access array of pointer to structure [closed] - JassWeb","og_description":"[ad_1] constructArray doesn&#8217;t actually do anything relevant, set aside leaking memory. Same for printArray. I guess you began to code in c++ not that long ago, the code you&#8217;ve written does the following: void constructArray (No *Number, int size) { \/\/ allocates enough memory to store n=size pointers to No then constructs them \/\/ stores ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/","og_site_name":"JassWeb","article_published_time":"2022-12-03T03:47:04+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] How to access array of pointer to structure [closed]","datePublished":"2022-12-03T03:47:04+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/"},"wordCount":272,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["arrays","c++","pointers","struct"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/","url":"https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/","name":"[Solved] How to access array of pointer to structure [closed] - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-12-03T03:47:04+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-access-array-of-pointer-to-structure-closed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] How to access array of pointer to structure [closed]"}]},{"@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\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206","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\/24491","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=24491"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/24491\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=24491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=24491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=24491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}