

{"id":123506,"date":"2024-02-24T18:00:54","date_gmt":"2024-02-24T12:30:54","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=123506"},"modified":"2024-03-09T13:58:40","modified_gmt":"2024-03-09T08:28:40","slug":"string-using-pointers-in-c","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/","title":{"rendered":"String using Pointers in C"},"content":{"rendered":"<p>Strings are an essential component of any programming language. A string is defined in C as a group of characters that are all followed by the null character &#8220;0.&#8221; Character arrays are provided by C for storing strings. However, directly accessing and manipulating strings using arrays can be cumbersome. This is where string pointers come into the picture.<\/p>\n<p>Pointers provide an efficient way to access and modify strings by directly pointing to characters in a string. In this article, we will learn how to declare, initialize and manipulate strings using pointers in C.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/String-introduction-.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-130540 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/String-introduction-.webp\" alt=\"String introduction\" width=\"400\" height=\"210\" \/><\/a><\/p>\n<h2>Termination of strings in C<\/h2>\n<p>The special null character 0 is used to indicate the end of a string in C. As a result, commands like printf() and puts() can print the string correctly up until the termination character.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/Termination-of-strings.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-130541 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/Termination-of-strings.webp\" alt=\"Termination of strings\" width=\"400\" height=\"210\" \/><\/a><\/p>\n<h3>Use of pointers in C<\/h3>\n<p>Pointers are special variables that store the memory address of other variables. They can be used to directly access and modify the content stored in that memory address. This makes them useful for efficiently manipulating strings.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/Use-of-pointers.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-130542 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/Use-of-pointers.webp\" alt=\"Use of pointers \" width=\"400\" height=\"210\" \/><\/a><\/p>\n<h3>2D arrays and pointer variables in C<\/h3>\n<p>Two-dimensional arrays and pointer variables can be used to store multiple strings by allocating memory dynamically. However, they have certain limitations in terms of flexibility and memory utilization.<\/p>\n<h3>Creating a String<\/h3>\n<p><strong>We can declare a character array to store a string in C. The general syntax is:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">char str[size];<\/pre>\n<p><strong>For example, to store the string &#8220;String&#8221;:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">char str[7] = \"DataFlair\";<\/pre>\n<p>Note that we allocate 6 characters to store the 5-character string &#8220;String&#8221; plus the null terminator \\0. The compiler automatically appends the null character at the end.<\/p>\n<p><strong>We can also initialize strings using string literals enclosed in double quotes:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">char str[] = \"DataFlair\";<\/pre>\n<p>Here, the size of the array is automatically set based on the size of the string literal.<\/p>\n<p>If we declare the array size equal to the string length, the null terminator will be missing. This can cause undefined behavior when trying to print or traverse the string.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">char str[5] = \"String\"; \/\/ Missing null terminator<\/pre>\n<h3>Creating a Pointer to the String<\/h3>\n<p>The first element in an array&#8217;s name corresponds to its memory location so that we can establish a pointer to the string&#8217;s initial character.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">char *ptr = str; \/\/ ptr points to first char of str<\/pre>\n<p><strong>To create a pointer to &#8220;String&#8221;:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">char str[] = \"String\";\r\nchar *ptr = str;<\/pre>\n<p>Now ptr points to the first character &#8216;S&#8217; of the string &#8220;String&#8221;.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/Creating-a-Pointer-to-the-String.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-130543 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/Creating-a-Pointer-to-the-String.webp\" alt=\"Creating a Pointer to the String\" width=\"400\" height=\"210\" \/><\/a><\/p>\n<h3><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/Creating-a-Pointer-to-the-String-chart-.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-130544 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/Creating-a-Pointer-to-the-String-chart-.webp\" alt=\"Creating a Pointer to the String chart\" width=\"400\" height=\"210\" \/><\/a><\/h3>\n<h3>Accessing String via Pointer<\/h3>\n<p>We can access individual characters using the dereference operator *.<\/p>\n<p><strong>For example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">*ptr = 'S';\r\nx = *ptr; \/\/ x contains 'S'<\/pre>\n<p><strong>To print all characters of the string using the pointer:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">while(*ptr != '\\0') {\r\n  printf(\"%c\", *ptr);\r\n  ptr++; \r\n}<\/pre>\n<p>This loops through and prints each character until the null terminator is encountered.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/Accessing-String-via-Pointer.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-130545 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/Accessing-String-via-Pointer.webp\" alt=\"Accessing String via Pointer\" width=\"400\" height=\"210\" \/><\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\r\n\r\nint main() {\r\n    \/\/ Declare a string\r\n    char str[] = \"Hello, World!\";\r\n\r\n    \/\/ Initialize a pointer to the beginning of the string\r\n    char *ptr = str;\r\n\r\n    \/\/ Iterate through the string using the pointer\r\n    while (*ptr != '\\0') {\r\n        printf(\"%c \", *ptr);\r\n        ptr++; \/\/ Move the pointer to the next character\r\n    }\r\n\r\n    printf(\"\\n\");\r\n\r\n    return 0;\r\n}<\/pre>\n<p><strong>Output:<\/strong><br \/>\nH e l l o , W o r l d !<\/p>\n<h3>Using a Pointer to Store String<\/h3>\n<p><strong>We can also use a pointer to store a string:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">char *str = \"HelloWorld\";<\/pre>\n<p>The initial character of the string literal, to which str points, is kept in read-only memory. Using printf(&#8220;%s&#8221;, str), we can print the string.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\r\n\r\nint main() {\r\n    \/\/ Declare a pointer to a string\r\n    char *str_ptr;\r\n\r\n    \/\/ Define a string\r\n    char my_string[] = \"Hello, World!\";\r\n\r\n    \/\/ Assign the address of the string to the pointer\r\n    str_ptr = my_string;\r\n\r\n    \/\/ Print the string using the pointer\r\n    printf(\"String stored in pointer: %s\\n\", str_ptr);\r\n\r\n    return 0;\r\n}<\/pre>\n<p><strong>Output:<\/strong><br \/>\n<strong>String stored in pointer:<\/strong> Hello, World!<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2024\/02\/using-a-pointer-to-store-string.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-134511 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2024\/02\/using-a-pointer-to-store-string.webp\" alt=\"using a pointer to store string\" width=\"600\" height=\"315\" \/><\/a><\/p>\n<h3>Array of Strings in C<\/h3>\n<p><strong>We can store multiple strings using a 2D character array:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">char names[2][10] = { \"John\", \"Mary\"};<\/pre>\n<p>Here, the second dimension stores individual strings. Memory is allocated for the declared size irrespective of the actual string lengths.<\/p>\n<p><strong>To overcome this memory wastage, we can use an array of pointers:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">char *names[] = {\"John\", \"Mary\"};<\/pre>\n<p>Now, memory is allocated dynamically based on string size. We can print individual strings using printf(&#8220;%s&#8221;, names[i]);<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\r\n\r\nint main() {\r\n    \/\/ Declare a 2D array of strings for books\r\n    char *books[][2] = {\r\n        {\"The Catcher in the Rye\", \"J.D. Salinger\"},\r\n        {\"To Kill a Mockingbird\", \"Harper Lee\"},\r\n        {\"1984\", \"George Orwell\"},\r\n        {\"The Great Gatsby\", \"F. Scott Fitzgerald\"},\r\n        {\"War and Peace\", \"Leo Tolstoy\"}\r\n    };\r\n\r\n    \/\/ Print the list of books with titles and authors\r\n    printf(\"List of Books:\\n\");\r\n    for (int i = 0; i &lt; 5; i++) {\r\n        printf(\"%d. Title: %s\\n\", i + 1, books[i][0]);\r\n        printf(\"   Author: %s\\n\", books[i][1]);\r\n    }\r\n\r\n    return 0;\r\n}<\/pre>\n<p><strong>Output:<\/strong><br \/>\n<strong>List of Books:<\/strong><br \/>\n1. Title: The Catcher in the Rye<br \/>\nAuthor: J.D. Salinger<br \/>\n2. Title: To Kill a Mockingbird<br \/>\nAuthor: Harper Lee<br \/>\n3. Title: 1984<br \/>\nAuthor: George Orwell<br \/>\n4. Title: The Great Gatsby<br \/>\nAuthor: F. Scott Fitzgerald<br \/>\n5. Title: War and Peace<br \/>\nAuthor: Leo Tolstoy<\/p>\n<h3>Example Program<\/h3>\n<h4>Example 1:<\/h4>\n<p><strong>Here is an example program to demonstrate string pointers:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\r\n#include &lt;string.h&gt;\r\n\r\nint main() {\r\n  \r\n  char *names[3];\r\n  \r\n  \/\/ Input strings\r\n  names[0] = \"John\";\r\n  names[1] = \"Bob\";\r\n  names[2] = \"Alice\";  \r\n\r\n  \/\/ Print strings and lengths  \r\n  for(int i=0; i&lt;3; i++) {\r\n     printf(\"Name = %s, Length = %lu\\n\", names[i], strlen(names[i]));\r\n  }\r\n  \r\n  return 0;\r\n}<\/pre>\n<p>This stores input strings in a pointer array and prints them along with their length using strlen().<\/p>\n<p><strong>Output:<\/strong><br \/>\nName = John, Length = 4<br \/>\nName = Bob, Length = 3<br \/>\nName = Alice, Length = 5<\/p>\n<p>Time Complexity: O(N)<br \/>\nAuxiliary Space: O(1)<\/p>\n<h4>Example 2:<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;stdio.h&gt;\r\n\r\nint main(void) {\r\n  char characterName[] = \"DataFlair\";\r\n\r\n  printf(\"%c\\n\", *characterName);\r\n  printf(\"%c\\n\", *(characterName + 1));\r\n  printf(\"%c\\n\", *(characterName + 7));\r\n\r\n  char *namePointer;\r\n\r\n  namePointer = characterName;\r\n  printf(\"%c\\n\", *namePointer);\r\n  printf(\"%c\\n\", *(namePointer + 1));\r\n  printf(\"%c\\n\", *(namePointer + 7));\r\n\r\n  return 0;\r\n}<\/pre>\n<p><strong>Output:<\/strong><br \/>\nD<br \/>\na<br \/>\ni<br \/>\nD<br \/>\na<br \/>\nI<\/p>\n<h3>Conclusion<\/h3>\n<ul>\n<li>Pointers allow direct access to strings for efficient manipulation.<\/li>\n<li>Character arrays and pointers can be used to store strings.<\/li>\n<li>Two-dimensional arrays and pointer arrays allow for storing multiple strings.<\/li>\n<li>Pointer arrays are more flexible and memory-efficient for strings.<\/li>\n<li>Learning pointers is crucial for performing string operations in C.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Strings are an essential component of any programming language. A string is defined in C as a group of characters that are all followed by the null character &#8220;0.&#8221; Character arrays are provided by&#46;&#46;&#46;<\/p>\n","protected":false},"author":86671,"featured_media":131848,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19488],"tags":[29982,23914,29983,29984,29981,29985],"class_list":["post-123506","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-programming","tag-c-practicals","tag-c-programming","tag-c-string-using-pointers","tag-string-using-pointers","tag-string-using-pointers-in-c","tag-termination-of-strings"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>String using Pointers in C - DataFlair<\/title>\n<meta name=\"description\" content=\"Pointers in C provide an efficient way to access and modify strings by directly pointing to characters in a string.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"String using Pointers in C - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Pointers in C provide an efficient way to access and modify strings by directly pointing to characters in a string.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-24T12:30:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-09T08:28:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/string-programming-using-pointers-in-c.webp\" \/>\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\/webp\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\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=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"String using Pointers in C - DataFlair","description":"Pointers in C provide an efficient way to access and modify strings by directly pointing to characters in a string.","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:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/","og_locale":"en_US","og_type":"article","og_title":"String using Pointers in C - DataFlair","og_description":"Pointers in C provide an efficient way to access and modify strings by directly pointing to characters in a string.","og_url":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2024-02-24T12:30:54+00:00","article_modified_time":"2024-03-09T08:28:40+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/string-programming-using-pointers-in-c.webp","type":"image\/webp"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/0e594f928e31fc96628ac40f6ae74f49"},"headline":"String using Pointers in C","datePublished":"2024-02-24T12:30:54+00:00","dateModified":"2024-03-09T08:28:40+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/"},"wordCount":679,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/string-programming-using-pointers-in-c.webp","keywords":["c practicals","c programming","c string using pointers","string using pointers","string using pointers in c","termination of strings"],"articleSection":["C Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/","url":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/","name":"String using Pointers in C - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/string-programming-using-pointers-in-c.webp","datePublished":"2024-02-24T12:30:54+00:00","dateModified":"2024-03-09T08:28:40+00:00","description":"Pointers in C provide an efficient way to access and modify strings by directly pointing to characters in a string.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/string-programming-using-pointers-in-c.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/11\/string-programming-using-pointers-in-c.webp","width":1200,"height":628,"caption":"string using pointers in c"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/string-using-pointers-in-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"C Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/c-programming\/"},{"@type":"ListItem","position":3,"name":"String using Pointers in C"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/0e594f928e31fc96628ac40f6ae74f49","name":"TechVidvan Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c89190da3d4010c71ba476b618ab10fdc2335c82cdfa0ad5002d98d0f2473444?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c89190da3d4010c71ba476b618ab10fdc2335c82cdfa0ad5002d98d0f2473444?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c89190da3d4010c71ba476b618ab10fdc2335c82cdfa0ad5002d98d0f2473444?s=96&d=mm&r=g","caption":"TechVidvan Team"},"description":"TechVidvan Team provides high-quality content &amp; courses on AI, ML, Data Science, Data Engineering, Data Analytics, programming, Python, DSA, Android, Flutter, full stack web dev, MERN, and many latest technology.","url":"https:\/\/data-flair.training\/blogs\/author\/test001\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/123506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/86671"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=123506"}],"version-history":[{"count":8,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/123506\/revisions"}],"predecessor-version":[{"id":134513,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/123506\/revisions\/134513"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/131848"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=123506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=123506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=123506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}