{"id":26111,"date":"2022-12-15T14:33:34","date_gmt":"2022-12-15T09:03:34","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/"},"modified":"2022-12-15T14:33:34","modified_gmt":"2022-12-15T09:03:34","slug":"solved-passing-string-to-a-function-when-unsigned-int-expected-in-c","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/","title":{"rendered":"[Solved] Passing string to a function when unsigned int expected in C"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-50552233\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"50552233\" data-parentid=\"50550952\" 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>The whole point of a <em>type<\/em> in a language like C is that it describes some well-defined, useful set of values.<\/p>\n<p>A value of type <code>unsigned int<\/code> can hold any integer in a range defined by your compiler and processor.  This is typically a 32-bit integer, meaning that an <code>unsigned int<\/code> can hold any integer from 0 to 4294967295.  But an <code>unsigned int<\/code> can not hold the value 5000000000 (it&#8217;s too big), or the value 123.456 (it&#8217;s not an integer) or the value &#8220;hello, world&#8221; (strings aren&#8217;t integers).<\/p>\n<p>A value of type <code>char *<\/code> can hold a pointer to a character anywhere in the usable address space on your computer.  So it can hold a pointer to a single character, or it can hold a pointer to a null-terminated array of characters like &#8220;hello, world&#8221;, or it can hold a NULL pointer.  But it is not intended to hold an integer, or a floating-point value.<\/p>\n<p>Sometimes, under constrained or unusual circumstances, programmers try to bend the rules, by wedging a value of one type into a variable of a different type.  Sometimes you can make this work, sometimes you can&#8217;t.  It&#8217;s almost always a significantly bad idea.  Even if it can be made to work, it&#8217;s often the case that it works properly on one machine, but not others.<\/p>\n<p>Let&#8217;s look more carefully at what you&#8217;re doing.  (I&#8217;m filling in a few details you left out.)<\/p>\n<pre><code>void expects_unsigned_int(unsigned int);\n<\/code><\/pre>\n<p>Here we tell the compiler that there&#8217;s going to be a function named <code>expects_unsigned_int<\/code> that accepts one argument of type <code>unsigned int<\/code> and returns nothing.<\/p>\n<pre><code>#include &lt;stdio.h&gt;\n\nint main()\n{\n    expects_unsigned_int(\"some text\");\n}\n<\/code><\/pre>\n<p>Here we call that function, passing an argument of type <code>char *<\/code>.  We&#8217;re in trouble already, of course.  You can&#8217;t wedge a <code>char *<\/code> into an <code>unsigned int<\/code> sized slot.  A proper compiler will give you a serious warning, if not an outright error, here.  Mine says<\/p>\n<pre><code>warning: passing argument 1 of \u2018expects_unsigned_int\u2019 makes integer from pointer without a cast\nexpected \u2018unsigned int\u2019 but argument is of type \u2018char *\u2019\n<\/code><\/pre>\n<p>These warnings make sense, and are consistent with my explanations so far of what we should and shouldn&#8217;t do with types.<\/p>\n<p>As you may know, a pointer is &#8220;just&#8221; an address, and on most machines an address is &#8220;just&#8221; a bit pattern of some size, so you can convince yourself that it ought to be possible to jam a pointer into an integer.  The key question, which we&#8217;ll return to in a minute, is whether type <code>unsigned int<\/code> is literally big enough to hold all possible values of type <code>char *<\/code>.<\/p>\n<pre><code>void expects_unsigned_int(unsigned int val) {\n<\/code><\/pre>\n<p>Here we begin defining the details of function <code>expects_unsigned_int<\/code>.  Again we say that it accepts one argument of type <code>unsigned int<\/code> and returns nothing.  That&#8217;s consistent with the earlier prototype declaration.  All right so far.<\/p>\n<pre><code>unsigned int* string = 0;\n<\/code><\/pre>\n<p>Here we declare a pointer of type <code>unsigned int *<\/code> and initialize it to the null pointer.  We don&#8217;t really need this intermediate pointer, and in this case it doesn&#8217;t matter whether we initialize it, since we&#8217;re about to overwrite it.<\/p>\n<pre><code>string = (unsigned int*) val;\n<\/code><\/pre>\n<p>Here&#8217;s where the trouble begins.  We have an unsigned int value, and we attempt to convert it into a pointer.  Again, this might seem reasonable, since pointers are &#8220;just&#8221; addresses and addresses are &#8220;just&#8221; bit patterns.<\/p>\n<p>The other thing we have is an explicit cast.  In this case, surprisingly, the cast is not really &#8220;doing&#8221; the conversion from <code>unsigned int<\/code> to <code>unsigned int *<\/code>.  If we wrote the assignment without the cast, like this:<\/p>\n<pre><code>string = val;\n<\/code><\/pre>\n<p>the compiler would see an <code>unsigned int<\/code> value on the right-hand side, and a pointer of type <code>unsigned int *<\/code> on the left-hand side, and it would attempt to perform the same conversion implicitly.  But since it&#8217;s a dangerous and potentially meaningless conversion, the compiler would warn about it.  Mine says<\/p>\n<pre><code>warning: assignment makes pointer from integer without a cast\n<\/code><\/pre>\n<p>But when you write an explicit cast, for most compilers what this means is, &#8220;trust me, I know what I&#8217;m doing, do this conversion and keep your doubts to yourself, I don&#8217;t want to hear any of your warnings.&#8221;<\/p>\n<p>Finally,<\/p>\n<pre><code>printf(\"%s\", (char*)string);\n<\/code><\/pre>\n<p>Here we do two things.  First we explicitly convert the <code>unsigned int *<\/code> pointer into a <code>char *<\/code> pointer.  That&#8217;s also a questionable conversion, but of a much lesser concern.  On the vast majority of computers today, all pointers (no matter what they point to) have the same size and representation, so a conversion like this is most unlikely to cause any problems.<\/p>\n<p>And then the second thing we do is, finally, try to print the <code>char *<\/code> pointer using <code>printf<\/code> and <code>%s<\/code>.  As you&#8217;ve discovered, it doesn&#8217;t always work.  It doesn&#8217;t work for me on my computer, either.<\/p>\n<p>There are computers where it would work, so the answer to your question &#8220;Is it possible to do it?&#8221; is &#8220;Yes, maybe, but.&#8221;<\/p>\n<p>Why didn&#8217;t it work for you?  I can&#8217;t be sure, but it&#8217;s probably for the same reason it didn&#8217;t work for me.  On my machine, pointers are 64 bits, but regular ints (including `unsigned int) are 32 bits.  So when we called<\/p>\n<pre><code>expects_unsigned_int(\"some text\");\n<\/code><\/pre>\n<p>and attempted to wedge a pointer into an int-sized slot, we scraped off 32 of its 64 bits.  That&#8217;s an information-losing transformation, so it&#8217;s very likely to be an unrecoverable error.<\/p>\n<p>Let&#8217;s print some additional information, so we can confirm that this is what&#8217;s going on.  I encourage you to make these modifications to your program on your computer, so you can see what results you get.<\/p>\n<p>Let&#8217;s rewrite <code>main<\/code> like this:<\/p>\n<pre><code>int main()\n{\n    char *string = \"some text\";\n    printf(\"string = %p = %s\\n\", string, string);\n    printf(\"int: %d, pointer: %d\\n\", (int)sizeof(unsigned int), (int)sizeof(string));\n    expects_unsigned_int(string);\n}\n<\/code><\/pre>\n<p>We&#8217;re using the <code>printf<\/code> format <code>%p<\/code> to print the pointer.  This will show us a representation of the bit pattern that makes up the pointer value (however big it is), typically in hexadecimal.  We&#8217;re also using <code>sizeof()<\/code> to tell us how big ints and pointers are on the machine we&#8217;re using.<\/p>\n<p>Let&#8217;s rewrite <code>expects_unsigned_int<\/code> like this:<\/p>\n<pre><code>void expects_unsigned_int(unsigned int val) {\n    char *string = val;\n    printf(\"val = %x\\n\", val);\n    printf(\"string = %p\\n\", string);\n    printf(\"string = %s\\n\", string);\n}\n<\/code><\/pre>\n<p>Here we&#8217;re printing both the value of <code>val<\/code> as it comes in, and the pointer we recover from it (again, using <code>%p<\/code>).  Also, I&#8217;m making <code>string<\/code> of type <code>char *<\/code>, since there was no point in having it <code>unsigned int *<\/code>.<\/p>\n<p>When I run the modified program, here&#8217;s what I get:<\/p>\n<pre><code>string = 0x101295f20 = some text\nint: 4, pointer: 8\nval = 1295f20\nstring = 0x1295f20\nSegmentation fault: 11\n<\/code><\/pre>\n<p>Immediately we see several things:<\/p>\n<ul>\n<li>Pointers are bigger than ints on this machine (as I was saying earlier).  There&#8217;s no way we&#8217;re going to be able to stuff a pointer into an int without potentially losing data.<\/li>\n<li>We&#8217;re indeed scraping off some of the bits of the sting pointer.  It starts out being <code>101295f20<\/code> and ends up as <code>1295f20<\/code>.<\/li>\n<li>The program doesn&#8217;t work.  It crashes with a segmentation violation, likely because the mangled pointer value <code>0x1295f20<\/code> points outside its address space.<\/li>\n<\/ul>\n<p>So how do we fix this?  The best way would be to <em>not<\/em> try to pass a pointer value through a slot that&#8217;s designed to hold integers.<\/p>\n<p>Or, if we really wanted to, if we were bound and determined to convert pointers to integers and back again, we could try using a bigger integer, such as an <code>unsigned long int<\/code>.  (And if that wasn&#8217;t big enough, we could also try <code>unsigned long long int<\/code>.)<\/p>\n<p>I rewrote <code>main<\/code> like this:<\/p>\n<pre><code>void expects_unsigned_long_int(unsigned long int val);\n\nint main()\n{\n    char *string = \"some text\";\n    printf(\"string = %p = %s\\n\", string, string);\n        printf(\"int: %d, pointer: %d\\n\", (int)sizeof(unsigned long int), (int)sizeof(string));\n    expects_unsigned_long_int(string);\n}\n<\/code><\/pre>\n<p>And then <code>expects_unsigned_long_int<\/code> looks like this:<\/p>\n<pre><code>void expects_unsigned_long_int(unsigned long int val) {\n    char *string = val;\n    printf(\"val = %x\\n\", val);\n    printf(\"string = %p\\n\", string);\n    printf(\"string = %s\\n\", string);\n}\n<\/code><\/pre>\n<p>I still get warnings when I compile it, but now when I run it it prints<\/p>\n<pre><code>string = 0x10a09df20 = some text\nint: 8, pointer: 8\nval = a09df20\nstring = 0x10a09df20\nstring = some text\n<\/code><\/pre>\n<p>So it looks like type <code>unsigned long int<\/code> is big enough (for now), and no bits get scraped off, and the original pointer value is successfully recovered inside <code>expects_unsigned_long_int<\/code>, and the string prints correctly.<\/p>\n<p>But, in closing, please, figure out a better way of doing this!<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">1<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Passing string to a function when unsigned int expected in C <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] The whole point of a type in a language like C is that it describes some well-defined, useful set of values. A value of type unsigned int can hold any integer in a range defined by your compiler and processor. This is typically a 32-bit integer, meaning that an unsigned int can hold any &#8230; <a title=\"[Solved] Passing string to a function when unsigned int expected in C\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/\" aria-label=\"More on [Solved] Passing string to a function when unsigned int expected in 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,362,1854],"class_list":["post-26111","post","type-post","status-publish","format-standard","hentry","category-solved","tag-c","tag-string","tag-unsigned-integer"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Solved] Passing string to a function when unsigned int expected in 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-passing-string-to-a-function-when-unsigned-int-expected-in-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Passing string to a function when unsigned int expected in C - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] The whole point of a type in a language like C is that it describes some well-defined, useful set of values. A value of type unsigned int can hold any integer in a range defined by your compiler and processor. This is typically a 32-bit integer, meaning that an unsigned int can hold any ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-15T09:03:34+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=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\\\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Passing string to a function when unsigned int expected in C\",\"datePublished\":\"2022-12-15T09:03:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\\\/\"},\"wordCount\":1202,\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"keywords\":[\"c++\",\"string\",\"unsigned-integer\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\\\/\",\"name\":\"[Solved] Passing string to a function when unsigned int expected in C - JassWeb\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\"},\"datePublished\":\"2022-12-15T09:03:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Passing string to a function when unsigned int expected in 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\\\/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] Passing string to a function when unsigned int expected in 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-passing-string-to-a-function-when-unsigned-int-expected-in-c\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Passing string to a function when unsigned int expected in C - JassWeb","og_description":"[ad_1] The whole point of a type in a language like C is that it describes some well-defined, useful set of values. A value of type unsigned int can hold any integer in a range defined by your compiler and processor. This is typically a 32-bit integer, meaning that an unsigned int can hold any ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/","og_site_name":"JassWeb","article_published_time":"2022-12-15T09:03:34+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Passing string to a function when unsigned int expected in C","datePublished":"2022-12-15T09:03:34+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/"},"wordCount":1202,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["c++","string","unsigned-integer"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/","url":"https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/","name":"[Solved] Passing string to a function when unsigned int expected in C - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-12-15T09:03:34+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-passing-string-to-a-function-when-unsigned-int-expected-in-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Passing string to a function when unsigned int expected in 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\/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\/26111","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=26111"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/26111\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=26111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=26111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=26111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}