{"id":83474,"date":"2021-08-11T09:00:31","date_gmt":"2021-08-11T03:30:31","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=83474"},"modified":"2021-08-11T09:00:31","modified_gmt":"2021-08-11T03:30:31","slug":"c-typedef-with-examples","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/","title":{"rendered":"C Typedef with Examples"},"content":{"rendered":"<p>The C programming language supports various keywords and data types. In C, you can also create your own data type. Typedef is a predefined keyword. This keyword helps in creating a user defined name for an existing data type.<\/p>\n<h3>What is the typedef keyword in C?<\/h3>\n<p>As discussed, it is a predefined keyword. With the help of this keyword, you can give a meaningful name to an existing variable in your C program. To put it short, you can replace the name of the existing data type with the name which you have provided. It works similarly when we define aliases for the commands.<\/p>\n<h3>Working of C typedef<\/h3>\n<p>To implement the typedef keyword successfully, you will have to give a meaningful name to an existing data type in the program code. Then the compiler replaces the existing data type with the name that you have provided for the entire application.<\/p>\n<p><strong>Syntax1:- Using typedef keyword in C<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">typedef &lt;existing data type or keyword&gt; &lt;user given name for the datatype or keyword&gt;<\/pre>\n<p><strong>Syntax2:- Working of typedef<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">typedef struct\n{\n    data_type member1;\n    data_type member2;\n    data_type member3;\n}type_name;\n<\/pre>\n<p><strong>Example:- typedef keyword in C<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">typedef unsigned int length;<\/pre>\n<p>In the above example, we have declared an unsigned int type variable length with the help of typedef keyword. Now we can create unsigned int type variables with length like below:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">length i,j;<\/pre>\n<p>Suppose, you have to declare an unsigned int datatype at various locations in your program code. It will be lazy work. But the typedef keyword will make your work easy.<\/p>\n<p><strong>Basic Example of C typedef keyword<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\ntypedef int ainT; \/\/declared a new variable of int data type!\nint main ()\n{\n  printf(\"TechVidvan Tutorial: Example of typedef keyword!\\n\\n\");\n  int a=10;\n  ainT b=50,c;\n  c = a + b;\n  printf (\"Sum is: %d\", c);\n  return 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">\n<p>TechVidvan Tutorial: Example of typedef keyword!<\/p>\n<p>Sum is: 60<\/p>\n<\/div>\n<h4>Example of typedef in C<\/h4>\n<p>Suppose, you want to create a record of a student which includes student details such as name, id, subjects, marks, phone number etc. then you can do all this by defining a structure. It helps you in increasing the readability of the program code.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\ntypedef struct details\n{\nint age;\nint id;\n}student;\nint main( )\n{\nstudent s1;\nprintf(\"TechVidvan Tutorial: Example of typedef in C!\\n\\n\");\ns1.age = 21;\ns1.id = 3;\nprintf(\"AGe of the student is: %d\\n\", s1.age);\nprintf(\"Id of the student is: %d\\n\", s1.id);\nreturn 0;\n}<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">\n<p>TechVidvan Tutorial: Example of typedef in C!<\/p>\n<p>AGe of the student is: 21<br \/>\nId of the student is: 3<\/p>\n<\/div>\n<h3>C typedef struct<\/h3>\n<p>You can also use the typedef keyword with structures in C. With typedef, create a new data type and then use that to define structure variables.<\/p>\n<p><strong>Example:- Using typedef with structures<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">typedef struct employee\n{  \nint salary;  \nint id;  \n}emp;\nemp e1,e2;<\/pre>\n<p><strong>Example:- typedef with structures<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\ntypedef struct employee\n{  \nint salary;  \nint id;  \n}emp;  \nint main()  \n{  \nemp e1,e2;  \ne1.salary = 14000;\ne1.id = 1;\ne2.salary = 12000;\ne2.id = 2;\nprintf(\"TechVidvan Tutorial: typedef using struct!\");\nprintf(\"Salary of the first employee is : %d\\n\", e1.salary);\nprintf(\"ID of the first employee is : %d\\n\", e1.id);\nprintf(\"Salary of the second employee is : %d\\n\", e2.salary);\nprintf(\"ID of the second employee is : %d\\n\", e2.id);\nreturn 0;  \n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">TechVidvan Tutorial: typedef using struct!Salary of the first employee is : 14000<br \/>\nID of the first employee is : 1<br \/>\nSalary of the second employee is : 12000<br \/>\nID of the second employee is : 2<\/div>\n<p>In the above example, we have declared variable emp of type struct employee. We can create variables using the emp variable of type struct employee. It helps in reducing the complexity of the code.<\/p>\n<h3>How to use typedef in C?<\/h3>\n<p>In C, you can make use of the typedef keyword. It is mainly used to give meaningful names to the existing data type. Below, we have declared a real_int variable with typedef keyword.<\/p>\n<p><strong>Example:- typedef keyword<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\nint main()\n{\nprintf(\"TechVidvan Tutorial: How to use typedef in C!\\n\\n\");\ntypedef real_int;\nreal_int num = 213;\nprintf(\"Number is: %d\\n\",num);\nreturn 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">\n<p>TechVidvan Tutorial: How to use typedef in C!<\/p>\n<p>Number is: 213<\/p>\n<\/div>\n<h3>C typedef with pointers<\/h3>\n<p>You can also use the typedef keyword with pointers.<\/p>\n<p><strong>Example:- using typedef with pointers<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">typedef int* point;\npoint a,b;<\/pre>\n<p>In the above example, we have declared variable point of type *int. With that, we can create variables of type *int using the point variable.<\/p>\n<p><strong>Example:- typedef with pointers<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\ntypedef int* point;\nint main(){\n  point a1;\n  a1 = 40;\n  printf(\"TechVidvan Tutorial: typedef using pointers!\\n\");\n  printf(\"Value is: %d\",a1);\n  return 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">TechVidvan Tutorial: typedef using pointers!<br \/>\nValue is: 40<\/div>\n<p>In the above example, a1 is the variable of type *int.<\/p>\n<h3>typedef and #define<\/h3>\n<p>#define directive works similar to the typedef keyword. #define directive is also used to define various data types like typedef keyword.<\/p>\n<ul>\n<li>#define directive is processed by the preprocessor and the typedef keyword is processed by the compiler.<\/li>\n<li>You have to put a semicolon at the end of a typedef keyword. But in #define, you don\u2019t have to.<\/li>\n<li>typedef is used for giving a new name to the existing data type. And #define is a directive which is used to give an alias for values like 1 as ONE, 3.14 as PI.<\/li>\n<\/ul>\n<p><strong>Example:- #define<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\n#define SIDE  5\nint main( ) {\n  int area;\n  area = SIDE*SIDE;\n   printf(\"TechVidvan Tutorial: #define directive!\\n\");\n   printf(\"Area of square is: %d\",area);\n   return 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">TechVidvan Tutorial: #define directive!<br \/>\nArea of square is: 25<\/div>\n<p><strong>Example:- typedef<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\ntypedef char c;\nint main()\n{\n  c c1;\n  c1 = 'T';\n  printf(\"Printing character: %c\", c1);\n  return 0;\n}<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">Printing character: T<\/div>\n<p>Below are some examples on how to use the <strong>typedef struct<\/strong>.<\/p>\n<p><strong>Example of Variable declaration without using typedef:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\nstruct value{\n  int a;\n};\nint main() {\n  struct value i;\n  i.a=5;\n  printf(\"Value is: %d\\n\", i.a);\n  return 0;\n}<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">Value is: 5<\/div>\n<h3>Difference between typedef and #define:-<\/h3>\n<table>\n<tbody>\n<tr>\n<td><b>typedef<\/b><\/td>\n<td><b>#define<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">It is compiler based.<\/span><\/td>\n<td><span style=\"font-weight: 400\">It is preprocessor based.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">You have to put a semicolon at the end of the typedef keyword.<\/span><\/td>\n<td><span style=\"font-weight: 400\">In #define directive, you don\u2019t have to put a semicolon.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">It is used for giving new names to data types only.<\/span><\/td>\n<td><span style=\"font-weight: 400\"> #define is a directive which is used to give an alias for values like 1 as ONE, 3.14 as PI.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Describes the actual definition of the new data type.<\/span><\/td>\n<td><span style=\"font-weight: 400\">Simply copy and paste the definition values.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Using typedef keyword<\/h3>\n<p>You don\u2019t have to type struct keyword again and again in every declaration of variables.<\/p>\n<p><strong>Method One:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\nstruct value{\n  int a;\n};\ntypedef struct value val;\nint main() {\n  val i;\n  i.a = 63;\n  printf(\"Value is: %d\\n\", i.a);\n  return 0;\n}<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">Value is: 63<\/div>\n<p><strong>Method Two:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\ntypedef struct value{\n  int i;\n}val;\nint main() {\n  val a;\n  a.i = 36;\n  printf(\"Value is: %d\\n\", a.i);\n  return 0;\n}<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">Value is: 36<\/div>\n<h3>Application of typedef<\/h3>\n<p>The typedef keyword is used to give a meaningful name to the existing data type.<\/p>\n<p><strong>Use of typedef with structures:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">typedef struct\n{\ndata_type variable1;\ndata_type variable2;\n}variable_name;\n<\/pre>\n<p>With that variale_name, you can declare variables of structure type like below:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">variable_name a,b;<\/pre>\n<p><strong>Example:- typedef unsigned char<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\ntypedef unsigned char CHAR;\nint main()\n{\nCHAR letter1='T';\nCHAR letter2='e';\nCHAR letter3='c';\nCHAR letter4='h';\nCHAR letter5='V';\nCHAR letter6='i';\nCHAR letter7='d';\nCHAR letter8='v';\nCHAR letter9='a';\nCHAR letter10='n';\nprintf(\"TechVidvan Tutorial: typedef with unsigned char!\\n\\n\");\nprintf(\"Created word with alphabets: %c%c%c%c%c%c%c%c%c%c\",letter1,letter2,letter3,letter4,letter5,letter6,letter7,letter8,letter9,letter10);\nreturn 0;\n}<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">\n<p>TechVidvan Tutorial: typedef with unsigned char!Created word with alphabets: TechVidvan<\/p>\n<\/div>\n<h3>C Typedef using an array<\/h3>\n<p>You can also use the typedef keyword with an array.<\/p>\n<p><strong>Example:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">typedef int arr[10];<\/pre>\n<p>arr is a variable of int data type. With that, you can also declare variables as much as you can.<\/p>\n<p><strong>For example:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">arr i,j,k;<\/pre>\n<p><strong>Example:- typedef with an array<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\ntypedef int arr[5];\n\nint main()\n{\n  int a;\n  arr i = {14,2,3,54,3};\n  printf(\"TechVidvan Tutorial: typedef using array!\\n\");\n  for(a = 0; a &lt; 5; a++)\n  {\n    \tprintf(\"Element of %d is: %d\\n\",a ,i[a]);\n  }\n  return 0;\n}<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">TechVidvan Tutorial: typedef using array!<br \/>\nElement of 0 is: 14<br \/>\nElement of 1 is: 2<br \/>\nElement of 2 is: 3<br \/>\nElement of 3 is: 54<br \/>\nElement of 4 is: 3<\/div>\n<h3>Summary:-<\/h3>\n<p>typedef is a predefined keyword. You can replace the name of the existing data type with the name which you have provided. This keyword helps in creating a user-defined name for an existing data type. You can also use the typedef keyword with structures, pointers, arrays etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The C programming language supports various keywords and data types. In C, you can also create your own data type. Typedef is a predefined keyword. This keyword helps in creating a user defined name&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":83499,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3510],"tags":[4019,4020,4021,4022,4023,4024],"class_list":["post-83474","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-programming","tag-application-of-typedef","tag-c-typedef","tag-c-typedef-struct","tag-c-typedef-with-pointers","tag-difference-between-typedef-and-define","tag-typedef-using-an-array"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>C Typedef with Examples - TechVidvan<\/title>\n<meta name=\"description\" content=\"Learn about C typedef with examples. It is a predefined keyword that helps in creating user-defined name for an existing data type.\" \/>\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\/c-typedef-with-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C Typedef with Examples - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Learn about C typedef with examples. It is a predefined keyword that helps in creating user-defined name for an existing data type.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/\" \/>\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-08-11T03:30:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/07\/Typedef-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":"C Typedef with Examples - TechVidvan","description":"Learn about C typedef with examples. It is a predefined keyword that helps in creating user-defined name for an existing data type.","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\/c-typedef-with-examples\/","og_locale":"en_US","og_type":"article","og_title":"C Typedef with Examples - TechVidvan","og_description":"Learn about C typedef with examples. It is a predefined keyword that helps in creating user-defined name for an existing data type.","og_url":"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-08-11T03:30:31+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/07\/Typedef-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\/c-typedef-with-examples\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"C Typedef with Examples","datePublished":"2021-08-11T03:30:31+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/"},"wordCount":976,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/07\/Typedef-in-c.jpg","keywords":["Application of typedef","C typedef","C typedef struct","C typedef with pointers","Difference between typedef and #define","Typedef using an array"],"articleSection":["C Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/","url":"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/","name":"C Typedef with Examples - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/07\/Typedef-in-c.jpg","datePublished":"2021-08-11T03:30:31+00:00","description":"Learn about C typedef with examples. It is a predefined keyword that helps in creating user-defined name for an existing data type.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/07\/Typedef-in-c.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/07\/Typedef-in-c.jpg","width":1200,"height":628,"caption":"Typedef in c"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/c-typedef-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"C Typedef 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\/83474","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=83474"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/83474\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/83499"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=83474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=83474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=83474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}