{"id":81733,"date":"2021-07-19T09:00:50","date_gmt":"2021-07-19T03:30:50","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=81733"},"modified":"2021-07-19T09:00:50","modified_gmt":"2021-07-19T03:30:50","slug":"structures-in-c","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/","title":{"rendered":"Structures in C with Examples"},"content":{"rendered":"<p>The C programming language has many awesome features which help the programming by making their coding easy. In C, you can also make use of structures. It will help you in creating data items of different types. Structure is one of the important and efficient topics in C. A programmer should learn the functionality of structures because of its working and easy-to-implement methods.<\/p>\n<h3>What is Structure in C?<\/h3>\n<p>Structure is a user-defined data type. It works similarly like arrays. Structures help you in grouping items of different types in a single group. It stores the collection of different data types. Each element of structure is known as a member.<\/p>\n<h3>Defining structures in C<\/h3>\n<p>Before creating variables of structure, you have to define it first. You can use the struct keyword to define structures.<\/p>\n<p><strong>Syntax:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">struct name_of_the_structure \n{\n    data_type member1;\n    data_type member2;\n    ...\n    data_type memberN;\n};\n<\/pre>\n<p><strong>Example of C Structures<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">struct bill\n{\n   float amount;\n   int id;\n   char address[100];\n};\n<\/pre>\n<p>In the above example, we have defined a structure named bill. And the members of this structure are <strong>amount, id<\/strong> and <strong>address.<\/strong><\/p>\n<h3>How to create structures in C:-<\/h3>\n<p>You can create structures outside the main() function. The <strong>struct<\/strong> keyword is used to create a structure in C. To access the data members of a structure, you will have to create structure variables either outside or inside of the main() function.<\/p>\n<p><strong>Syntax:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">struct name_of_the_structure \n{\n    data_type member1;\n    data_type member2;\n    ...\n    data_type memberN;\n};\n<\/pre>\n<p><strong>Example:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">struct bill\n{\n   float amount;\n   int id;\n   char address[100];\n};\n<\/pre>\n<h3>Creating structure variable in C<\/h3>\n<p>You can also declare variables through the structure. It helps in accessing the members of the structure easily. There are two ways to declare structure variable:-<\/p>\n<ul>\n<li>Using the struct keyword within the main() function.<\/li>\n<li>You can also declare a variable at the time of defining a structure.<\/li>\n<\/ul>\n<h4>First Method of Creating structure variable in C<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">struct bill\n{\n   float amount;\n   int id;\n   char address[100];\n};\n<\/pre>\n<p>In first method, you can declare the structure variables within the main() function like below:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int main(){\nstruct bill p1,p2;\n}\n<\/pre>\n<p>From the above example, you can use p1,p2 variables to access the members of the structure.<\/p>\n<h4>Second Method of Creating structure variable in C<\/h4>\n<p>You can also declare a structure variable in other way like below:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">struct bill\n{\n   float amount;\n   int id;\n   char address[100];\n}p1,p2;\n<\/pre>\n<p><strong>Between these two ways which way is better:-<\/strong><\/p>\n<ul>\n<li>If the number of variables which you want to declare are fixed then use the second method of declaring structure variables.<\/li>\n<li>If the number of variables is not fixed then use the first way of declaring structure variables.<\/li>\n<\/ul>\n<h3>Accessing members of C structures<\/h3>\n<p>Before using the structure variables, you will have to access the members of the structure. There are 2 ways to access the member of the structure:-<\/p>\n<ul>\n<li>Use . operator<\/li>\n<li>Use -&gt; operator (structure pointer operator)<\/li>\n<\/ul>\n<p>Suppose, you want to access the amount member of the p1 variable from the above example then you can use . operator like below:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">p1.amount;\n<\/pre>\n<p><strong>Example:- Accessing members of structures<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;  \n#include &lt;string.h&gt;    \nstruct bill \t \n{   int id; \t \n  char address[200]; \t \n  float amount; \t \n}p1,p2;\t \nint main( )    \n{   \nprintf(\"TechVidvan Tutorial: Accessing members of structure!\\n\\n\");\n   p1.id=1;    \n   strcpy(p1.address, \"Sector 41B, Market Complex, City: Siliguri, State: West Bengal\");  \n   p1.amount=5689.36;\n   printf(\"Details of First Person!\\n\");\n   printf(\"Id of first person is: %d\\n\",p1.id);\n   printf(\"Amount due by first person is: %f\\n\",p1.amount);\n   printf(\"Address of first person is: %s\\n\",p1.address);\n   p2.id=2;    \n   strcpy(p2.address, \"Sector 43B, Road No-06, Market Complex, City: Siliguri, State: West Bengal\");  \n   p2.amount=5644.36;\n   printf(\"Details of Second Person!\\n\");\n   printf(\"Id of Second person is: %d\\n\",p2.id);\n   printf(\"Amount due by second person is: %f\\n\",p2.amount);\n   printf(\"Address of second person is: %s\\n\",p2.address);    \n    \n   return 0;    \n}  \n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">\n<p>TechVidvan Tutorial: Accessing members of structure!<\/p>\n<p>Details of First Person!<br \/>\nId of first person is: 1<br \/>\nAmount due by first person is: 5689.359863<br \/>\nAddress of first person is: Sector 41B, Market Complex, City: Siliguri, State: West Bengal<br \/>\nDetails of Second Person!<br \/>\nId of Second person is: 2<br \/>\nAmount due by second person is: 5644.359863<br \/>\nAddress of second person is: Sector 43B, Road No-06, Market Complex, City: Siliguri, State: West Bengal<\/p>\n<\/div>\n<h3>Array of structures in C<\/h3>\n<p>You can also create an array of structures like below:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\nstruct array_name\n{\n   int a;\n   float b;\n};\nint main()\n{\n   struct array_name a1[6];\n   a1[0].a = 44;\n   a1[1].b = 4.5;\n   printf(\"TechVidvan Tutorial: Array of structures!\\n\\n\");\nprintf(\"Integer value is: %d\\n\",a1[0].a);\n   printf(\"Floating point value is: %0.1f\",a1[1].b);\n   return 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">\n<p>TechVidvan Tutorial: Array of structures!<\/p>\n<p>Integer value is: 44<br \/>\nFloating point value is: 4.5<\/p>\n<\/div>\n<h3>Structure Pointer in C<\/h3>\n<p>As you have seen, you can use an array to structure. Similarly, you can use a pointer to the structure. If you use pointers to a structure then you will have to use -&gt; operator to access the members of the structure.<\/p>\n<p><strong>Example of structure pointer<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\nstruct point\n{\n   int a;\n   float b;\n};\nint main()\n{\n   struct point p1={3,6.3};\n   struct point *p2=&amp;p1;\n   printf(\"TechVidvan Tutorial: Pointer to structures!\\n\\n\");\n   printf(\"First value is: %d\\n\",p2-&gt;a);\n   printf(\"Second value is: %0.1f\",p2-&gt;b);\n   return 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">\n<p>TechVidvan Tutorial: Pointer to structures!<\/p>\n<p>First value is: 3<br \/>\nSecond value is: 6.3<\/p>\n<\/div>\n<h4>typedef keyword in C<\/h4>\n<p>You can use the typedef keyword with structures to simplify the syntax for declaring variables. With the help of this keyword, you can give a meaningful name to an existing variable in your C program.<\/p>\n<p><strong>Let\u2019s look at an example below:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">struct bill\n{\n   float amount;\n   int id;\n   char address[100];\n};\nint main(){\nstruct bill p1,p2;\n}\n<\/pre>\n<p>In a similar way, you can use the typedef keyword in the above example like below:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">typedef struct bill\n{\n   float amount;\n   int id;\n   char address[100];\n}each_bill;\nint main(){\neach_bill p1,p2;\n}\n<\/pre>\n<h4>Nested structures in C:-<\/h4>\n<p>Like nested loops, you can also create nested structures in your program code.<\/p>\n<p><strong>Example of C nested structures<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">struct detail\n{\n int id;\n float amount;\n};\n\nstruct info\n{\n   struct detail each_person;\n   int age;\n} person_1, person_2;\n<\/pre>\n<p>In the above example, we have used two struct types: <strong>detail<\/strong> and <strong>each_person.<\/strong> Suppose you want to declare a value of the member <strong>id<\/strong> for the variable <strong>person_1<\/strong> then you can do this like below:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">person_1.each_person.id = 4;<\/pre>\n<h3>Passing function to structures in C<\/h3>\n<p>You can also pass a function to structures. It helps you in making your coding better and efficient.<\/p>\n<p><strong>Example of passing function to structures<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\n#include &lt;string.h&gt;\n \nstruct info {\n   char student_name[50];\n   char favorite_subject[20];\n   int id;\n};\nvoid display( struct info each_student );\nint main() {\n   struct info s1;  \t \n   strcpy( s1.student_name, \"John Digoi\");\n   strcpy( s1.favorite_subject, \"Maths\");\n   s1.id = 756;\n\/\/ printing first student details!\n   display(s1);\n   return 0;\n}\n\nvoid display( struct info each_student ) {\n  printf(\"TechVidvan Tutorial: passing a function to the structures!\\n\\n\");\n   printf( \"Name of first student: %s\\n\", each_student.student_name);\n   printf( \"Favourite subject of first student: %s\\n\", each_student.favorite_subject);\n   printf(\"ID of first student: %d\\n\",each_student.id);\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">\n<p>TechVidvan Tutorial: passing a function to the structures!<\/p>\n<p>Name of first student: John Digoi<br \/>\nFavourite subject of first student: Maths<br \/>\nID of first student: 756<\/p>\n<\/div>\n<h3>Why to use structures in C?<\/h3>\n<p>Sometimes you will face a situation where you want to store various information or data about one or more people. That is when you will create different variables for each information per person. And, your program code will be long and complex. So to avoid this type of long and complex coding, you can create a collection of all related information with the help of structures.<\/p>\n<h3>Limitations of structures in C<\/h3>\n<ul>\n<li>You cannot use operators like +,- on struct variables.<\/li>\n<li>You cannot hide any data through structures.<\/li>\n<li>It does not allow functions inside structures.<\/li>\n<li>Structures do not contain static data members.<\/li>\n<li>You cannot use any access specifiers on structure because the C programming language does not support access modifiers.<\/li>\n<li>You cannot use constructors inside the structures.<\/li>\n<\/ul>\n<h3>Significance of C Structures<\/h3>\n<p>Let\u2019s take an example to understand the significance of structures in C.<\/p>\n<p>Let\u2019s say that you want to display a particular date in your system. With the help of a structure, you can define the date, month and the year as the members of the structure. It will work as a single unit.<\/p>\n<p><strong>Following is the solution to the above problem:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\nstruct printDate\n{\nint d, m, y;\n};\nint main()\n{\nstruct printDate date = {16, 11, 2021};\nprintf(\"TechVidvan Tutorials: Significance of structures in C!\\n\\n\");\nprintf(\"Your provided date is: %d:%d:%d\\n\", date.d, date.m, date.y);\nreturn 0;\n}<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">\n<p>TechVidvan Tutorials: Significance of structures in C!<\/p>\n<p>Your provided date is: 16:11:2021<\/p>\n<\/div>\n<h3>Designated Initialization in C<\/h3>\n<p>The main purpose of designated initialization is to initialize the structure members in any order.<\/p>\n<p><strong>Example of C Designated Initialization<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt; \nstruct init\n{\n   int a, b, c;\n}; \nint main()\n{\n   \/\/ using designated initialization\n   struct init i1 = {.b = 1, .a = 4, .c = 47};\n   struct init i2 = {.b = 13};\n   printf(\"TechVidvan Tutorial: Designated initialization!\\n\\n\");\n   printf (\"Values: a = %d, b = %d, c = %d\\n\", i1.a,i1.b,i1.c);\n   printf (\"Values: b = %d\", i2.b);\n   return 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">\n<p>TechVidvan Tutorial: Designated initialization!<\/p>\n<p>Values: a = 4, b = 1, c = 47<br \/>\nValues: b = 13<\/p>\n<\/div>\n<h3>Summary<\/h3>\n<p>The C programming language has many awesome features which help the programming by making their coding easy. In C, you can also make use of structures.<\/p>\n<p>Structure is a user-defined data type. It works similarly like arrays. You can create a collection of all related information with the help of structures. Before using the structure variables, you will have to access the members of the structure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The C programming language has many awesome features which help the programming by making their coding easy. In C, you can also make use of structures. It will help you in creating data items&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":82881,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3510],"tags":[3774,3775],"class_list":["post-81733","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-programming","tag-structure-in-c","tag-structures-in-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Structures in C with Examples - TechVidvan<\/title>\n<meta name=\"description\" content=\"Learn about Structures in C. It is a user defined data type like arrays. You can create a collection of all related information with its help\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Structures in C with Examples - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Learn about Structures in C. It is a user defined data type like arrays. You can create a collection of all related information with its help\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-19T03:30:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/07\/Structure-in-C.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Structures in C with Examples - TechVidvan","description":"Learn about Structures in C. It is a user defined data type like arrays. You can create a collection of all related information with its help","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:\/\/techvidvan.com\/tutorials\/structures-in-c\/","og_locale":"en_US","og_type":"article","og_title":"Structures in C with Examples - TechVidvan","og_description":"Learn about Structures in C. It is a user defined data type like arrays. You can create a collection of all related information with its help","og_url":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-07-19T03:30:50+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/07\/Structure-in-C.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Structures in C with Examples","datePublished":"2021-07-19T03:30:50+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/"},"wordCount":1109,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/07\/Structure-in-C.jpg","keywords":["Structure in C","Structures in C"],"articleSection":["C Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/structures-in-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/","url":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/","name":"Structures in C with Examples - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/07\/Structure-in-C.jpg","datePublished":"2021-07-19T03:30:50+00:00","description":"Learn about Structures in C. It is a user defined data type like arrays. You can create a collection of all related information with its help","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/structures-in-c\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/07\/Structure-in-C.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/07\/Structure-in-C.jpg","width":1200,"height":628,"caption":"Structures in C"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/structures-in-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Structures in C with Examples"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/81733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=81733"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/81733\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/82881"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=81733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=81733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=81733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}