{"id":84206,"date":"2021-09-13T09:00:37","date_gmt":"2021-09-13T03:30:37","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=84206"},"modified":"2021-09-13T09:00:37","modified_gmt":"2021-09-13T03:30:37","slug":"vectors-in-cpp","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/","title":{"rendered":"Vectors in C++"},"content":{"rendered":"<p>As we know that the C++ programming language offers various useful features and functionalities to the programmers. In C++, Vectors are one of the important and exciting features. You can say that vectors are the same as the array. When an element is inserted or deleted, it can automatically resize itself.<\/p>\n<h3>What are vectors in C++?<\/h3>\n<p>IN C++, vectors are dynamic arrays that are used to store data. It is capable of resizing itself automatically. When you insert or delete an element then the resizing takes place. Arrays are static in nature and also it is used to store sequential data. But vectors offer more flexibility and efficiency to the program.<\/p>\n<p>In vectors, the storage is handled automatically by the containers. The elements of the vectors are stored in contiguous storage. That\u2019s why it becomes easy to access and traverse the vector elements using iterators.<\/p>\n<h3>Are vectors ordered in C++?<\/h3>\n<p>No, vectors are not ordered in C++. If you insert data then that data will be inserted at the end of it. So, it takes different times to insert data at the end and sometimes there may be a need to extend the vector. You can easily traverse and access the vector elements using iterators because they are stored in adjacent storage.<\/p>\n<h3>Difference between vector and array<\/h3>\n<p>Arrays are static in nature. It means that you cannot change the size at runtime. But vectors are dynamic in nature. While inserting or deleting an element, it automatically resizes itself.<\/p>\n<h3>When to use a vector<\/h3>\n<p>You can make use of vectors on the following situations:-<\/p>\n<ul>\n<li>Data elements that change consistently.<\/li>\n<li>If you do not know the size of data at the beginning.<\/li>\n<\/ul>\n<h3>Initializing vectors in C++<\/h3>\n<p><strong>Syntax:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">vector &lt;data-type&gt; variable_name (items)\n<\/pre>\n<p>First, we have to use the vector keyword at the beginning. Then, mention the data type of the elements which will be stored in vectors. Then, provide the name of the vector or the data elements. The items specify the number of elements for the vector&#8217;s data.<\/p>\n<h3>How the vectors are stored in C++<\/h3>\n<p>Below, we created a blank vector:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;vector&gt;\nint main()\n{\n    std::vector&lt;int&gt; v1;\n}\n<\/pre>\n<p>Vectors are dynamic in nature.<\/p>\n<h3>Member functions of vectors in C++<\/h3>\n<p>In STL, a vector container offers various useful functions.<\/p>\n<ul>\n<li>Modifiers<\/li>\n<li>Iterators<\/li>\n<li>Capacity<\/li>\n<\/ul>\n<h4>Modifiers in C++<\/h4>\n<p>Mainly used to change the meaning of the specified data type. Below are the common modifiers in C++:-<\/p>\n<ul>\n<li>push_back():- Mainly used to push the element from the back.<\/li>\n<li>assign():- Used for assigning new values to the vector elements.<\/li>\n<li>insert():- Mainly used for inserting new elements in a vector at specified location.<\/li>\n<li>pop_back():- Used to remove the vector elements from the back.<\/li>\n<li>erase():- Used to remove a range of vector elements from a specified location.<\/li>\n<li>clear():- Removes all the vector elements.<\/li>\n<li>swap():- Mainly used to swap contents of one vector with another vector of the same data type.<\/li>\n<\/ul>\n<p><strong>Example:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;bits\/stdc++.h&gt;\n#include &lt;vector&gt;\nusing namespace std;\n   \nint main()\n{\n  vector&lt;int&gt; v1;\n   \n  v1.assign(4, 6);\n  cout &lt;&lt; \"TechVidvan Tutorial: C++ Vectors!\\n\\n\";\n   \n  cout &lt;&lt; \"Vector elements are: \";\n  for (int i = 0; i &lt; 4; i++)\n    \tcout &lt;&lt; v1[i] &lt;&lt; \" \";\n\n  v1.push_back(15);\n  int s = v1.size();\n  cout &lt;&lt; \"\\nLast element is: \" &lt;&lt; v1[s - 1];\n \n  cout &lt;&lt; \"\\nVector elements after push back are: \";\n  for (int i = 0; i &lt; v1.size(); i++)\n  cout &lt;&lt; v1[i] &lt;&lt; \" \";\n   \n  v1.pop_back();\n\n  cout &lt;&lt; \"\\nVector elements after pop_back are: \";\n  for (int i = 0; i &lt; v1.size(); i++)\n    \tcout &lt;&lt; v1[i] &lt;&lt; \" \";\n  v1.insert(v1.begin(), 11);\n   \n  cout &lt;&lt; \"\\nFirst element after insertion is: \" &lt;&lt; v1[0];\n  v1.erase(v1.begin());\n   \n  cout &lt;&lt; \"\\nFirst element after erasing is: \" &lt;&lt; v1[0];\n \n  v1.emplace(v1.begin(), 7);\n  cout &lt;&lt; \"\\nFirst element emplace is: \" &lt;&lt; v1[0];\n   \n  v1.emplace_back(13);\n  s = v1.size();\n  cout &lt;&lt; \"\\nLast element after emplace_back: \" &lt;&lt; v1[s - 1];\n \n  v1.clear();\n  cout &lt;&lt; \"\\nVector size after clear is: \" &lt;&lt; v1.size();\n   \n \n  vector&lt;int&gt; o1, o2;\n  o1.push_back(2);\n  o1.push_back(3);\n  o2.push_back(5);\n  o2.push_back(7);\n\n   cout &lt;&lt; \"\\nBefore Swapping\";\n  cout &lt;&lt; \"\\n\\nVector 1-&gt; \";\n  for (int i = 0; i &lt; o1.size(); i++)\n    \tcout &lt;&lt; o1[i] &lt;&lt; \" \";\n   \n  cout &lt;&lt; \"\\n\\nVector 2-&gt; \";\n  for (int i = 0; i &lt; o2.size(); i++)\n    \tcout &lt;&lt; o2[i] &lt;&lt; \" \";\n\n  o1.swap(o2);\n   \n  cout &lt;&lt; \"\\nAfter Swapping \\n\\nVector 1-&gt; \";\n  for (int i = 0; i &lt; o1.size(); i++)\n    \tcout &lt;&lt; o1[i] &lt;&lt; \" \";\n   \n  cout &lt;&lt; \"\\n\\nVector 2-&gt; \";\n  for (int i = 0; i &lt; o2.size(); i++)\n    \tcout &lt;&lt; o2[i] &lt;&lt; \" \";\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">\n<p>TechVidvan Tutorial: C++ Vectors!<\/p>\n<p>Vector elements are: 6 6 6 6<br \/>\nLast element is: 15<br \/>\nVector elements after push back are: 6 6 6 6 15<br \/>\nVector elements after pop_back are: 6 6 6 6<br \/>\nFirst element after insertion is: 11<br \/>\nFirst element after erasing is: 6<br \/>\nFirst element emplace is: 7<br \/>\nLast element after emplace_back: 13<br \/>\nVector size after clear is: 0<br \/>\nBefore Swapping<\/p>\n<p>Vector 1-&gt; 2 3<\/p>\n<p>Vector 2-&gt; 5 7<br \/>\nAfter Swapping<\/p>\n<p>Vector 1-&gt; 5 7<\/p>\n<p>Vector 2-&gt; 2 3<\/p>\n<\/div>\n<h4>Iterators in C++<\/h4>\n<p>Mainly used to access the elements which are stored in a vector. Below are the common iterators:-<\/p>\n<ul>\n<li>begin():- Returns an iterator which will point to the first element in the vector.<\/li>\n<li>end():- Returns an iterator which points to the last element in the vector.<\/li>\n<li>cbegin():- It is similar to the begin() function. But it cannot modify elements.<\/li>\n<li>cend():- It is similar to the end() function. But it cannot modify elements.<\/li>\n<\/ul>\n<p><strong>Example:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;iostream&gt;\n#include &lt;vector&gt;\n   \nusing namespace std;\n   \nint main()\n{\n  vector&lt;int&gt; v1;\n   \n  for (int i = 2; i &lt;= 8; i++)\n    \tv1.push_back(i);\n   \n  cout &lt;&lt; \"TechVidvan Tutorial: C++ Vectors\" &lt;&lt; endl;\n  cout &lt;&lt; \"Elements are:\" &lt;&lt; endl;\n  for (auto i = v1.begin(); i != v1.end(); ++i)\n    \tcout &lt;&lt; *i &lt;&lt; \" \";\n \n  return 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">TechVidvan Tutorial: C++ Vectors<br \/>\nElements are:<br \/>\n2 3 4 5 6 7 8<\/div>\n<h4>Capacity in C++<\/h4>\n<p>Helps you in determining the capacity of a vector.<\/p>\n<ul>\n<li>Size():- Used for getting the number of items in a vector.<\/li>\n<li>Max_size():- Used to return the highest number of items that is stored in a vector.<\/li>\n<li>Capacity():- Returns the size of the storage space allocated to the vector.<\/li>\n<li>resize():- Mainly used to resize the container so that it can have \u2018n\u2019 elements.<\/li>\n<li>empty():- Returns true if the vector is empty.<\/li>\n<\/ul>\n<p><strong>Example:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;iostream&gt;\n#include &lt;vector&gt;\n   \nusing namespace std;\n   \nint main()\n{\n  vector&lt;int&gt; v1;\n   \n  for (int i = 5; i &lt;= 15; i++)\n    \tv1.push_back(i);\n   \n  cout &lt;&lt; \"Size of the vector-&gt; \" &lt;&lt; v1.size();\n  cout &lt;&lt; \"\\nCapacity of the vector-&gt; \" &lt;&lt; v1.capacity();\n  cout &lt;&lt; \"\\nMax Size of the vector-&gt; \" &lt;&lt; v1.max_size();\n \n  v1.resize(5);\n  cout &lt;&lt; \"\\nSize of the vector after resizing-&gt; \" &lt;&lt; v1.size();\n   \n  if (v1.empty() == false)\n    \tcout &lt;&lt; \"\\nThe Vector is not empty\";\n  else\n    \tcout &lt;&lt; \"\\nThe Vector is empty\";\n   \n  return 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">Size of the vector-&gt; 11<br \/>\nCapacity of the vector-&gt; 16<br \/>\nMax Size of the vector-&gt; 2305843009213693951<br \/>\nSize of the vector after resizing-&gt; 5<br \/>\nThe Vector is not empty<\/div>\n<h4>Element access in C++<\/h4>\n<ul>\n<li>at(position):- Used for returning a reference to the element at the given position in the vector.<\/li>\n<li>front():- Used to return a reference to the first element in the vector.<\/li>\n<li>back():- Used to return a reference to the last element in the vector.<\/li>\n<li>data():- Used to return a direct pointer to the memory array.<\/li>\n<li>reference operator[pos]:- Used for returning a reference to the element in a vector at a given position.<\/li>\n<\/ul>\n<p><strong>Example:-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include &lt;bits\/stdc++.h&gt;\nusing namespace std;\nint main()\n{\n  vector&lt;int&gt; v1;\n \n  for (int i = 2; i &lt;= 7; i++)\n    \tv1.push_back(i * 4);\n \n  cout &lt;&lt; \"\\nReference operator[pos]: v1[2]-&gt; \" &lt;&lt; v1[2];\n \n  cout &lt;&lt; \"\\nat: v1.at(3)-&gt; \" &lt;&lt; v1.at(3);\n \n  cout &lt;&lt; \"\\nfront(): v1.front()-&gt; \" &lt;&lt; v1.front();\n \n  cout &lt;&lt; \"\\nback(): v1.back()-&gt; \" &lt;&lt; v1.back();\n\n  int* data = v1.data();\n \n  cout &lt;&lt; \"\\nThe first element is-&gt; \" &lt;&lt; *data;\n  return 0;\n}\n<\/pre>\n<p><strong>Output:-<\/strong><\/p>\n<div class=\"code-output\">Reference operator[pos]: v1[2]-&gt; 16<br \/>\nat: v1.at(3)-&gt; 20<br \/>\nfront(): v1.front()-&gt; 8<br \/>\nback(): v1.back()-&gt; 28<br \/>\nThe first element is-&gt; 8<\/div>\n<h3>Summary<\/h3>\n<p>In this tutorial, we discussed the vectors in C++ and how to initialize them. We also discussed the difference between arrays and vectors. Then we saw about the member functions of vectors in C++ and when you should use a vector in C++.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we know that the C++ programming language offers various useful features and functionalities to the programmers. In C++, Vectors are one of the important and exciting features. You can say that vectors are&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":84637,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3405],"tags":[4219,4220,4221,4222],"class_list":["post-84206","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpp","tag-capacity-in-c","tag-iterators-in-c","tag-modifiers-in-c","tag-vectors-in-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Vectors in C++ - TechVidvan<\/title>\n<meta name=\"description\" content=\"Learn about vectors in C++, its usage and how to initialize them. See difference between arrays &amp; vectors and member functions of C++ vectors.\" \/>\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\/vectors-in-cpp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Vectors in C++ - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Learn about vectors in C++, its usage and how to initialize them. See difference between arrays &amp; vectors and member functions of C++ vectors.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/\" \/>\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-09-13T03:30:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/Vectors-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=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Vectors in C++ - TechVidvan","description":"Learn about vectors in C++, its usage and how to initialize them. See difference between arrays & vectors and member functions of C++ vectors.","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\/vectors-in-cpp\/","og_locale":"en_US","og_type":"article","og_title":"Vectors in C++ - TechVidvan","og_description":"Learn about vectors in C++, its usage and how to initialize them. See difference between arrays & vectors and member functions of C++ vectors.","og_url":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-09-13T03:30:37+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/Vectors-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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Vectors in C++","datePublished":"2021-09-13T03:30:37+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/"},"wordCount":905,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/Vectors-in-C.jpg","keywords":["Capacity in C++","Iterators in C++","Modifiers in C++","Vectors in C++"],"articleSection":["C++ Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/","url":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/","name":"Vectors in C++ - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/Vectors-in-C.jpg","datePublished":"2021-09-13T03:30:37+00:00","description":"Learn about vectors in C++, its usage and how to initialize them. See difference between arrays & vectors and member functions of C++ vectors.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/Vectors-in-C.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/Vectors-in-C.jpg","width":1200,"height":628,"caption":"Vectors in C++"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/vectors-in-cpp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Vectors in C++"}]},{"@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\/84206","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=84206"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/84206\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/84637"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=84206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=84206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=84206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}