{"id":23171,"date":"2022-11-24T09:15:15","date_gmt":"2022-11-24T03:45:15","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/"},"modified":"2022-11-24T09:15:15","modified_gmt":"2022-11-24T03:45:15","slug":"solved-need-help-debugging-segfault","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/","title":{"rendered":"[Solved] Need help debugging segfault"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-52084422\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"52084422\" data-parentid=\"52082850\" data-score=\"0\" 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>The reason is suspected <code>conio.h<\/code> and other outdated headers is this.<\/p>\n<pre><code>#include&lt;stdio.h&gt;\n#include &lt;stdlib.h&gt;\n\/\/ #include&lt;conio.h&gt;\n#include&lt;string.h&gt;\n\nchar* strrev(char *str)\n{\n      char *p1;\n      int i, j;\n      \/\/puts(\"Reversing\");\n      \/\/puts(str);\n      p1 = (char*)malloc(strlen(str) * sizeof(char));\n      for( i = strlen(str)-1, j =0; i &gt;=0; i--, j++) {\n        p1[j] = str[i];\n      }\n      p1[j] = '\\0';\n      puts(p1);\n      \/\/puts(\"Done\");\n      return p1;\n}\n\nvoid main()\n{\n    char *arr[1][3]= {{\"aABb\",\"c\",\"d\"}};\n    char input[15]= {'\\0'};\n    char temp[15]= {'\\0'};\n    char stack[15]= {'$','S'};\n    int ip=0;\n    int ct=0;\n    int top,i;\n    char x;\n\n    printf(\"\\t\\t\\t Predictive parser\\t\\t\\t\\n\");\n    printf(\"___________________________________________________\\n\\n\");\n    printf(\"The grammar is :\\n\");\n    printf(\"\\t\\tS--&gt;aABb\\n\");\n    printf(\"\\t\\tA--&gt;c\\n\");\n    printf(\"\\t\\tB--&gt;d\\n\\n\");\n    printf(\"You have follow some rules\\n\");\n    printf(\"The string must end with $\\n\");\n    printf(\"Enter  the String  : \");\n    gets(input);\n    top=(strlen(stack))-1;\n    x=stack[top];\n    printf(\"_______________________________________________________\\n\");\n    printf(\"stack\\t\\t\\t input\\t\\t\\t production\\n\");\n    printf(\"________________________________________________________\\n\");\n    while(x!='\\0')\n    {\n        if(x=='S'&amp;&amp;input[ct]=='a')\n        {\n            printf(\"\\n\");\n            for(i=0; i&lt;=strlen(stack); i++)\n                printf(\"%c\",stack[i]);\n            printf(\"\\t\\t\\t\");\n            for(i=ip; i&lt;6; i++)\n                printf(\"%c\",input[i]);\n            printf(\"\\t\\tderivation using S--&gt;aABb\\n\");\n            stack[top]='\\0';\n            strcpy(temp,strrev(arr[0][0]));\n            strcat(stack,temp);\n            top=strlen(stack)-1;\n        }\n        else if(x=='A'&amp;&amp;input[ct]=='c')\n        {\n            printf(\"\\n\");\n            for (i=0; i&lt;=strlen(stack); i++)\n                printf(\"%c\",stack[i]);\n            printf(\"\\t\\t\\t \");\n            for (i=ip; i&lt;6; i++)\n                printf(\"%c\",input[i]);\n            stack[top]='\\0';\n            strcpy(temp,strrev(arr[0][1]));\n            strcat(stack,temp);\n            top=strlen(stack)-1;\n            printf(\"\\t\\t derivation usingA--&gt;c\\n\");\n        }\n        else if(x=='B'&amp;&amp;input[ct]=='d')\n        {\n            printf(\"\\n\");\n            for (i=0; i&lt;=strlen(stack); i++)\n                printf(\"%c\",stack[i]);\n            printf(\"\\t\\t\\t \");\n            for (i=ip; i&lt;6; i++)\n                printf(\"%c\",input[i]);\n            stack[top]='\\0';\n            strcpy(temp,strrev(arr[0][2]));\n            strcat(stack,temp);\n            top=strlen(stack)-1;\n            printf(\"\\t\\t derivation using B--&gt;d\\n\");\n        }\n        else if(x=='a'&amp;&amp;input[ct]=='a')\n        {\n            printf(\"\\n\");\n            for (i=0; i&lt;=strlen(stack); i++)\n                printf(\"%c\",stack[i]);\n            printf(\"\\t\\t\\t \");\n            for (i=ip; i&lt;6; i++)\n                printf(\"%c\",input[i]);\n            printf(\"\\t\\t popping a from the stack\");\n            input[ct]=' ';\n            ct++;\n            stack[top]='\\0';\n            top--;\n        }\n        else if(x=='c'&amp;&amp;input[ct]=='c')\n        {\n            printf(\"\\n\");\n            for (i=0; i&lt;=strlen(stack); i++)\n                printf(\"%c\",stack[i]);\n            printf(\"\\t\\t\\t \");\n            for (i=ip; i&lt;6; i++)\n                printf(\"%c\",input[i]);\n            printf(\"\\t\\t popping c from the stack\");\n            input[ct]=' ';\n            ct++;\n            stack[top]='\\0';\n            top--;\n        }\n        else if(x=='d'&amp;&amp;input[ct]=='d')\n        {\n            printf(\"\\n\");\n            for (i=0; i&lt;=strlen(stack); i++)\n                printf(\"%c\",stack[i]);\n            printf(\"\\t\\t\\t \");\n            for (i=ip; i&lt;6; i++)\n                printf(\"%c\",input[i]);\n            printf(\"\\t\\t popping d from the stack\");\n            input[ct]=' ';\n            ct++;\n            stack[top]='\\0';\n            top--;\n        }\n        else if(x=='b'&amp;&amp;input[ct]=='b')\n        {\n            printf(\"\\n\");\n            for (i=0; i&lt;=strlen(stack); i++)\n                printf(\"%c\",stack[i]);\n            printf(\"\\t\\t\\t \");\n            for (i=ip; i&lt;6; i++)\n                printf(\"%c\",input[i]);\n            printf(\"\\t\\t popping b from the stack\");\n            input[ct]=' ';\n            ct++;\n            stack[top]='\\0';\n            top--;\n        }\n        else if(x=='$'&amp;&amp;input[ct]=='$')\n        {\n            printf(\"\\n\");\n            for (i=0; i&lt;=strlen(stack); i++)\n                printf(\"%c\",stack[i]);\n            printf(\"\\t\\t\\t \");\n            for (i=ip; i&lt;6; i++)\n                printf(\"%c\",input[i]);\n            stack[top]='\\0';\n            printf(\"\\t\\tSuccessfull\\n\");\n        }\n        else\n        {\n            printf(\"\\n\");\n            for (i=0; i&lt;=strlen(stack); i++)\n                printf(\"%c\",stack[i]);\n            printf(\"\\t\\t\\t \");\n            for (i=ip; i&lt;6; i++)\n                printf(\"%c\",input[i]);\n            stack[top]='\\0';\n            printf(\"\\t\\tUnsuccessfull\\n\");\n            getchar();\n            exit(1);\n        }\n        x=stack[top];\n    }\n    printf(\"\\n____________________ Exit program__________________\");\n    getchar();\n}\n<\/code><\/pre>\n<p><strong>The above is your code with some tiny modifications<\/strong><\/p>\n<ol>\n<li>Used a custom <code>strrev<\/code> , very naive implementation with bad memory practices, but it works.<\/li>\n<li>got rid of <code>conio<\/code><\/li>\n<li>Added <code>stdlib.h<\/code> for <code>malloc<\/code> <\/li>\n<li>got rid of <code>getch<\/code> in favor of <code>getchar<\/code><\/li>\n<li>got rid of <code>clrscr()<\/code><\/li>\n<\/ol>\n<p>Nobody knows what bugs <code>conio<\/code> and the old Borland headers have. They might erroneously redescribe some std functions.<\/p>\n<p>When I run the above with input <code>acdb$<\/code> I get<\/p>\n<pre><code>                        Predictive parser\n___________________________________________________\n\nThe grammar is :\n                S--&gt;aABb\n                A--&gt;c\n                B--&gt;d\n\nYou have follow some rules\nThe string must end with $\nEnter  the String  : acdb$\n_______________________________________________________\nstack                    input                   production\n________________________________________________________\n\n$S                      acdb$           derivation using S--&gt;aABb\nbBAa\n\n$bBAa                    acdb$           popping a from the stack\n$bBA                      cdb$c\n                 derivation usingA--&gt;c\n\n$bBc                      cdb$           popping c from the stack\n$bB                        db$d\n                 derivation using B--&gt;d\n\n$bd                        db$           popping d from the stack\n$b                          b$           popping b from the stack\n$                            $          Successfull\n\n____________________ Exit program__________________\n<\/code><\/pre>\n<p>Start using either gcc\/clang and use gdb\/lldb to debug these programs. <\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.cs.umd.edu\/~srhuang\/teaching\/cmsc212\/gdb-tutorial-handout.pdf\">here<\/a>&#8216;s a nice guide.<\/p>\n<p>If you compile with these options you can see your program is rife with bad programming patterns<\/p>\n<pre><code>gcc -Werror -Wall -Wextra -pedantic parser.c -o parser\nparser.c: In function \u2018strrev\u2019:\nparser.c:9:4: error: C++ style comments are not allowed in ISO C90 [-Werror]\nparser.c:9:4: error: (this will be reported only once per input file) [-Werror]\nparser.c:11:4: error: implicit declaration of function \u2018malloc\u2019 [-Werror=implicit-function-declaration]\nparser.c:11:16: error: incompatible implicit declaration of built-in function \u2018malloc\u2019 [-Werror]\nparser.c: At top level:\nparser.c:21:6: error: return type of \u2018main\u2019 is not \u2018int\u2019 [-Werror=main]\nparser.c: In function \u2018main\u2019:\nparser.c:52:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]\nparser.c:66:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]\nparser.c:80:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]\nparser.c:94:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]\nparser.c:108:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]\nparser.c:122:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]\nparser.c:136:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]\nparser.c:150:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]\nparser.c:161:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]\nparser.c:169:13: error: implicit declaration of function \u2018exit\u2019 [-Werror=implicit-function-declaration]\nparser.c:169:13: error: incompatible implicit declaration of built-in function \u2018exit\u2019 [-Werror]\ncc1: all warnings being treated as errors\n<\/code><\/pre>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\"><\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Need help debugging segfault <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] The reason is suspected conio.h and other outdated headers is this. #include&lt;stdio.h&gt; #include &lt;stdlib.h&gt; \/\/ #include&lt;conio.h&gt; #include&lt;string.h&gt; char* strrev(char *str) { char *p1; int i, j; \/\/puts(&#8220;Reversing&#8221;); \/\/puts(str); p1 = (char*)malloc(strlen(str) * sizeof(char)); for( i = strlen(str)-1, j =0; i &gt;=0; i&#8211;, j++) { p1[j] = str[i]; } p1[j] = &#8216;\\0&#8217;; puts(p1); \/\/puts(&#8220;Done&#8221;); return &#8230; <a title=\"[Solved] Need help debugging segfault\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/\" aria-label=\"More on [Solved] Need help debugging segfault\">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-23171","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] Need help debugging segfault - 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-need-help-debugging-segfault\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Need help debugging segfault - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] The reason is suspected conio.h and other outdated headers is this. #include&lt;stdio.h&gt; #include &lt;stdlib.h&gt; \/\/ #include&lt;conio.h&gt; #include&lt;string.h&gt; char* strrev(char *str) { char *p1; int i, j; \/\/puts(&quot;Reversing&quot;); \/\/puts(str); p1 = (char*)malloc(strlen(str) * sizeof(char)); for( i = strlen(str)-1, j =0; i &gt;=0; i--, j++) { p1[j] = str[i]; } p1[j] = &#039;&#039;; puts(p1); \/\/puts(&quot;Done&quot;); return ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-24T03:45:15+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-need-help-debugging-segfault\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Need help debugging segfault\",\"datePublished\":\"2022-11-24T03:45:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/\"},\"wordCount\":119,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"c++\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/\",\"name\":\"[Solved] Need help debugging segfault - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2022-11-24T03:45:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Need help debugging segfault\"}]},{\"@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] Need help debugging segfault - 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-need-help-debugging-segfault\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Need help debugging segfault - JassWeb","og_description":"[ad_1] The reason is suspected conio.h and other outdated headers is this. #include&lt;stdio.h&gt; #include &lt;stdlib.h&gt; \/\/ #include&lt;conio.h&gt; #include&lt;string.h&gt; char* strrev(char *str) { char *p1; int i, j; \/\/puts(\"Reversing\"); \/\/puts(str); p1 = (char*)malloc(strlen(str) * sizeof(char)); for( i = strlen(str)-1, j =0; i &gt;=0; i--, j++) { p1[j] = str[i]; } p1[j] = ''; puts(p1); \/\/puts(\"Done\"); return ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/","og_site_name":"JassWeb","article_published_time":"2022-11-24T03:45:15+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-need-help-debugging-segfault\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Need help debugging segfault","datePublished":"2022-11-24T03:45:15+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/"},"wordCount":119,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["c++"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/","url":"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/","name":"[Solved] Need help debugging segfault - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-11-24T03:45:15+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-need-help-debugging-segfault\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Need help debugging segfault"}]},{"@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\/23171","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=23171"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/23171\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=23171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=23171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=23171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}