{"id":33962,"date":"2023-02-17T01:12:11","date_gmt":"2023-02-16T19:42:11","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/"},"modified":"2023-02-17T01:12:11","modified_gmt":"2023-02-16T19:42:11","slug":"solved-why-the-address-of-structure-and-next-is-not-same","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/","title":{"rendered":"[Solved] Why the address of structure and next is not same?"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-32782621\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"32782621\" data-parentid=\"32780459\" data-score=\"3\" 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<h1>TL;DR<\/h1>\n<p>Your code provokes <em>Undefined Behavior<\/em>, as already mentioned in Morlacke&#8217;s Answer. Other than that, it seems that you&#8217;re having problems on understanding how pointers work. See references for tutorials.<\/p>\n<hr>\n<h2>First, From your comments<\/h2>\n<p>When you say that there&#8217;s memory allocated for <code>ip<\/code> in this case:<\/p>\n<pre><code>int i = 10;\nint *ip;\nip = &amp;i;\n<\/code><\/pre>\n<p>What happens is:<\/p>\n<ol>\n<li>You declare an <code>int<\/code> variable called <code>i<\/code> and assign the value <code>10<\/code> to it. Here, the computer allocates memory for <em>this variable<\/em> on the stack. Say, at address <code>0x1000<\/code>. So now, address <code>0x1000<\/code> has content <code>10<\/code>.<\/li>\n<li>Then you declare a pointer called <code>ip<\/code>, having type <code>int<\/code>. The computer allocates memory <em>for the pointer<\/em>. (This is important, see bellow for explanation). Your pointer is at address, say, <code>0x2000<\/code>.<\/li>\n<li>When you assign <code>ip = &amp;i<\/code>, you&#8217;re assigning the <strong>address of variable <code>i<\/code><\/strong> to variable <code>ip<\/code>. Now the <strong>value<\/strong> of variable <code>ip<\/code> (your pointer) is the address of <code>i<\/code>. <code>ip<\/code> doesn&#8217;t hold the value <code>10<\/code> &#8211; <code>i<\/code> does. Think of this assignment as <code>ip = 0x1000<\/code> (<em>don&#8217;t actually write this code<\/em>).<\/li>\n<li>To get the value <code>10<\/code> using your pointer you&#8217;d have to do <code>*ip<\/code> &#8211; this is called dereferencing the pointer. When you do that, the computer will <strong>access the contents of the address held by the pointer<\/strong>, in this case, the computer will access the contents on the address of <code>i<\/code>, which is <code>10<\/code>. Think of it as: <strong><code>get the contents of address 0x1000<\/code><\/strong>.<\/li>\n<\/ol>\n<p>Memory looks like this after that snippet of code:<\/p>\n<pre><code>VALUE    :   10    | 0x1000 |\nVARIABLE :    i    |   ip   |\nADDRESS  :  0x1000 | 0x2000 |\n<\/code><\/pre>\n<h2>Pointers<\/h2>\n<p>Pointers are a special type of variable in C. You can think of pointers as typed variables that <strong>hold addresses<\/strong>. The space your computer allocates on the stack for pointers depends on your <em>architecture<\/em> &#8211; on <code>32bit<\/code> machines, pointers will take 4 bytes; on <code>64bit<\/code> machines pointers will take 8 bytes. That&#8217;s the <strong>only<\/strong> memory your computer allocates for your pointers (<strong>enough room to store an address<\/strong>).<\/p>\n<p>However, pointers hold memory addresses, so you can make it point to some block of memory&#8230; Like memory blocks returned from <strong><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/man7.org\/linux\/man-pages\/man3\/malloc.3.html\">malloc<\/a><\/strong>. <\/p>\n<hr>\n<p>So, with this in mind, lets see your code:<\/p>\n<pre><code>NODE *hi;   \nprintf(\"\\nbefore malloc\\n\");\nprintf(\"\\naddress of node is: %p\",hi);\nprintf(\"\\naddress of next is: %p\",hi-&gt;next);\n<\/code><\/pre>\n<ol>\n<li>Declare a pointer to <code>NODE<\/code> called <code>hi<\/code>. Lets imagine this variable <code>hi<\/code> has address <code>0x1000<\/code>, and the <strong>contents of that address<\/strong> are arbitrary &#8211; you didn&#8217;t initialize it, so it can be anything from zeroes to a <strong><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/i.imgur.com\/KBRMzAU.png\">ThunderCat<\/a><\/strong>.<\/li>\n<li>Then, when you print <code>hi<\/code> in your <code>printf<\/code> you&#8217;re printing the contents of that address <code>0x1000<\/code>&#8230; But you don&#8217;t know what&#8217;s in there&#8230; It could be anything.<\/li>\n<li>Then you dereference the <code>hi<\/code> variable. You tell the computer: <strong>access the contents of the <em>ThunderCat<\/em> and print the value of variable <code>next<\/code><\/strong>. Now, I don&#8217;t know if ThunderCats have variables inside of them, nor if they like to be accessed&#8230; so this is <em>Undefined Behavior<\/em>. And it&#8217;s <strong>bad!<\/strong> <\/li>\n<\/ol>\n<p>To fix that:<\/p>\n<pre><code>NODE *hi = malloc(sizeof NODE);\nprintf(\"&amp;hi: %p\\n\", &amp;hi);\nprintf(\" hi: %p\\n\", hi);\n<\/code><\/pre>\n<p>Now you have a memory block of the size of your structure to hold some data. However, you still didn&#8217;t initialize it, so accessing the contents of it is <em>still undefined behavior<\/em>.<\/p>\n<p>To initialize it, you may do:<\/p>\n<pre><code>hi-&gt;id = 10;\nhi-&gt;next = hi;\n<\/code><\/pre>\n<p>And now you may print anything you want. See this:<\/p>\n<pre><code>#include &lt;stdio.h&gt;\n#include &lt;stdlib.h&gt;\n\nstruct node {\n    int id;\n    struct node *next;\n};\n\ntypedef struct node NODE;\n\nint main(void)\n{\n    NODE *hi = malloc(sizeof(NODE));\n\n    if (!hi) return 0;\n\n    hi-&gt;id = 10;\n    hi-&gt;next = hi;\n\n    printf(\"Address of hi (&amp;hi)   : %p\\n\", &amp;hi);\n    printf(\"Contents of hi        : %p\\n\", hi);\n    printf(\"Address of next(&amp;next): %p\\n\", &amp;(hi-&gt;next));\n    printf(\"Contents of next      : %p\\n\", hi-&gt;next);\n    printf(\"Address of id         : %p\\n\", &amp;(hi-&gt;id));\n    printf(\"Contents of id        : %d\\n\", hi-&gt;id);\n\n    free(hi);\n\n    return 0;\n}\n<\/code><\/pre>\n<p>And the output:<\/p>\n<pre><code>$ .\/draft\nAddress of hi (&amp;hi)   : 0x7fffc463cb78\nContents of hi        : 0x125b010\nAddress of next(&amp;next): 0x125b018\nContents of next      : 0x125b010\nAddress of id         : 0x125b010\nContents of id        : 10\n<\/code><\/pre>\n<p>The address of variable <code>hi<\/code> is one, and the <strong>address to which it points to<\/strong> is another. There are several things to notice on this output:<\/p>\n<ol>\n<li><code>hi<\/code> is on the stack. The block to which it points is on the heap.<\/li>\n<li>The address of <code>id<\/code> is the same as the memory block (that&#8217;s because it&#8217;s the first element of the structure). <\/li>\n<li>The address of <code>next<\/code> is 8 bytes from <code>id<\/code>, when it should be only 4(after all <code>int<\/code>s are only 4 bytes long) &#8211; this is due to memory alignment. <\/li>\n<li>The contents of <code>next<\/code> is the same block pointed by <code>hi<\/code>.<\/li>\n<li>The amount of memory &#8220;alloced&#8221; for the <code>hi<\/code> pointer itself is 8 bytes, as I&#8217;m working on a <code>64bit<\/code>. That&#8217;s all the <em>room it has and needs<\/em>.<\/li>\n<li>Always <code>free<\/code> after a <code>malloc<\/code>. Avoid <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Memory_leak\">memory leaks<\/a><\/li>\n<li>Never write code like this for other purposes than learning.<\/li>\n<\/ol>\n<p><em>Note: When I say &#8220;memory alloced for the pointer&#8221; I mean the space the computer separates for it on the stack when the declaration happens after the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Call_stack\">Stack Frame<\/a> setup.<\/em><\/p>\n<hr>\n<h2>References<\/h2>\n<ul>\n<li>SO: How Undefined is Undefined Behavior<\/li>\n<li>SO: Do I cast the result of malloc<\/li>\n<li>SO: What and where are the stack and heap?<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/cslibrary.stanford.edu\/106\/\">Pointer Basics<\/a> <\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/www.cs.umd.edu\/class\/sum2003\/cmsc311\/Notes\/BitOp\/pointer.html\">Pointer Arithmetic<\/a><\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/www.tutorialspoint.com\/cprogramming\/c_memory_management.htm\">C &#8211; Memory Management<\/a><\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/gribblelab.org\/CBootcamp\/7_Memory_Stack_vs_Heap.html\">Memory: Stack vs Heap<\/a><\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Memory_management\">Memory Management<\/a><\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/www.catb.org\/esr\/structure-packing\/\">The Lost Art of C Strucutre Packing<\/a> will tell you about structures, alignment, packing, etc&#8230;<\/li>\n<\/ul>\n<\/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 Why the address of structure and next is not same? <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] TL;DR Your code provokes Undefined Behavior, as already mentioned in Morlacke&#8217;s Answer. Other than that, it seems that you&#8217;re having problems on understanding how pointers work. See references for tutorials. First, From your comments When you say that there&#8217;s memory allocated for ip in this case: int i = 10; int *ip; ip = &#8230; <a title=\"[Solved] Why the address of structure and next is not same?\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/\" aria-label=\"More on [Solved] Why the address of structure and next is not same?\">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,377,386],"class_list":["post-33962","post","type-post","status-publish","format-standard","hentry","category-solved","tag-c","tag-dynamic-memory-allocation","tag-malloc"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Why the address of structure and next is not same? - 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-why-the-address-of-structure-and-next-is-not-same\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Why the address of structure and next is not same? - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] TL;DR Your code provokes Undefined Behavior, as already mentioned in Morlacke&#8217;s Answer. Other than that, it seems that you&#8217;re having problems on understanding how pointers work. See references for tutorials. First, From your comments When you say that there&#8217;s memory allocated for ip in this case: int i = 10; int *ip; ip = ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-16T19:42:11+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-why-the-address-of-structure-and-next-is-not-same\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Why the address of structure and next is not same?\",\"datePublished\":\"2023-02-16T19:42:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/\"},\"wordCount\":720,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"c++\",\"dynamic-memory-allocation\",\"malloc\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/\",\"name\":\"[Solved] Why the address of structure and next is not same? - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2023-02-16T19:42:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Why the address of structure and next is not same?\"}]},{\"@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=1775798750\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Why the address of structure and next is not same? - 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-why-the-address-of-structure-and-next-is-not-same\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Why the address of structure and next is not same? - JassWeb","og_description":"[ad_1] TL;DR Your code provokes Undefined Behavior, as already mentioned in Morlacke&#8217;s Answer. Other than that, it seems that you&#8217;re having problems on understanding how pointers work. See references for tutorials. First, From your comments When you say that there&#8217;s memory allocated for ip in this case: int i = 10; int *ip; ip = ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/","og_site_name":"JassWeb","article_published_time":"2023-02-16T19:42:11+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-why-the-address-of-structure-and-next-is-not-same\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Why the address of structure and next is not same?","datePublished":"2023-02-16T19:42:11+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/"},"wordCount":720,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["c++","dynamic-memory-allocation","malloc"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/","url":"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/","name":"[Solved] Why the address of structure and next is not same? - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2023-02-16T19:42:11+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-why-the-address-of-structure-and-next-is-not-same\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Why the address of structure and next is not same?"}]},{"@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=1775798750","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","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\/33962","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=33962"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/33962\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=33962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=33962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=33962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}