

{"id":59498,"date":"2019-06-17T12:05:28","date_gmt":"2019-06-17T06:35:28","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=59498"},"modified":"2021-07-23T13:26:33","modified_gmt":"2021-07-23T07:56:33","slug":"linked-list-in-c-cpp","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/","title":{"rendered":"Linked List in C\/C++ Fascinating Tactics that will improvise your skills"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:1503,&quot;href&quot;:&quot;https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Linked_list&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251011031102\\\/https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Linked_list&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-09 09:42:26&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-12 11:48:32&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-16 03:49:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-26 12:13:59&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-15 12:00:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-01 23:31:40&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-07 14:12:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-12 10:58:25&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-17 12:03:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-22 15:01:55&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-01 07:19:36&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-06 08:25:09&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-29 07:12:40&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-01 16:10:13&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-08 17:11:13&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-15 09:14:10&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-25 11:30:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-11 15:05:40&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-30 17:39:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-03 20:08:35&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-03 20:08:35&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p><em>A linked list in C\/C++ is basically a linear data structure based on the concept of dynamic memory allocation. It is implemented with the help of pointers<\/em>. The linked list in C and C++ tutorial is specially designed for the beginners, who are not aware of the importance of linked lists. By the end of this tutorial, you can easily implement the linked list.<\/p>\n<p><em>\u00a0Why Wait? Explore Now!<\/em><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61621 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp.jpg\" alt=\"Linked List in C and Cpp\" width=\"802\" height=\"420\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp.jpg 802w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp-520x272.jpg 520w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<h2>1. What is a Linked List in C\/C++?<\/h2>\n<p>As the name itself suggests, the linked list is a linear collection of similar <a href=\"https:\/\/data-flair.training\/blogs\/data-types-in-c-and-cpp\/\"><em><strong>data types in C<\/strong><\/em><\/a>.\u00a0<em>A linked list is nothing but a linear data structure with elements pointing to the next elements in a sequence, formally referred to as nodes<\/em>. Just like arrays support the feature of static allocation of memory, linked list support the feature of dynamic memory allocation.<\/p>\n<p><strong>Key takeaway:<\/strong> Linked lists do not store their data elements contiguously, unlike arrays.<\/p>\n<p>We saw that every linked list is associated with a node. Every node in a linked list is divided into two parts:<\/p>\n<ul>\n<li>The first part contains the information of the data element.<\/li>\n<li>The second part contains the memory address of the next node in the form of a pointer, called the link.<\/li>\n<\/ul>\n<p><strong>This is how a node looks like:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Node-in-linked-List-in-C.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-59510\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Node-in-linked-List-in-C.jpg\" alt=\"Node in linked List in C\" width=\"300\" height=\"150\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Node-in-linked-List-in-C.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Node-in-linked-List-in-C-150x75.jpg 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Here is a diagrammatic representation of how a linked list looks like:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/How-data-Stored-in-Linked-list-in-C.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-59511\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/How-data-Stored-in-Linked-list-in-C.jpg\" alt=\"Data Stored in Linked list\" width=\"800\" height=\"300\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/How-data-Stored-in-Linked-list-in-C.jpg 800w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/How-data-Stored-in-Linked-list-in-C-150x56.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/How-data-Stored-in-Linked-list-in-C-300x113.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/How-data-Stored-in-Linked-list-in-C-768x288.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/How-data-Stored-in-Linked-list-in-C-520x195.jpg 520w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>From the above diagrams, it is evident that the first node is called the head.<\/p>\n<p><em><strong>Before we start the example, you must know about <a href=\"https:\/\/data-flair.training\/blogs\/arrays-in-c-and-cpp\/\">Arrays in C\/C++<\/a><\/strong><\/em><\/p>\n<h2>2.\u00a0Real Life Example of Linked List<\/h2>\n<p>Let us understand the meaning of a linked list through a simple scenario:<\/p>\n<p>A student coordinator is given the responsibility to manage 20 students taken to a hill station on a school trip. Each student has his own allocated room. Their rooms are on the same floor adjacent to each other.<\/p>\n<p>Now, the student coordinator is supposed to distribute the tour plan to each student. The only thing the student coordinator needs to remember is the floor and room number of the first student. The room numbers of the next 19 students can easily be found out as the rooms are adjacent to each other.<\/p>\n<p>Now, the next day, due to some disparency, the hotel manager has to shuffle the rooms of the 20 students. This time they have been given random rooms that are not sequentially arranged. This time the student coordinator is supposed to distribute carnival tickets to each student but has no idea how to find all the students as they are randomly scattered in different rooms.<\/p>\n<p>The student coordinator finds a solution to this problem. He finds out the room number of the first student and asks him to remember the room number of the next student, who then asks to remember the room number of the student next to him. This process goes on until each student knows the room number of the student next to him except the last student.<\/p>\n<p>Employing this method helps the student coordinator to solve this problem.<\/p>\n<p>In the above-stated situation, the first case is clearly analogous to that of arrays, where there is a contiguous arrangement of students. Here, the data item is the student and their memory addresses are their room numbers. By finding out the memory address of one data element, the rest of the data elements can easily be accessed.<\/p>\n<p>In contrast to the first case, the second case is analogous to a linked list. Here, the first data element stores the address of its next data element to access it.<\/p>\n<p><em><strong>Enhance Your Fundamental Skills with\u00a0<a href=\"https:\/\/data-flair.training\/blogs\/operators-in-c-and-cpp\/\">Operators in C and C++<\/a><\/strong><\/em><\/p>\n<p><strong>Here is a diagrammatic representation of how the above-stated situations look like:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Array-anology-in-C.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-59513\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Array-anology-in-C.jpg\" alt=\"Array anology \" width=\"600\" height=\"300\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Array-anology-in-C.jpg 600w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Array-anology-in-C-150x75.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Array-anology-in-C-300x150.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Array-anology-in-C-520x260.jpg 520w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h2><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-list-anology-in-C.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-59514\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-list-anology-in-C.jpg\" alt=\"Linked List Anology\" width=\"600\" height=\"300\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-list-anology-in-C.jpg 600w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-list-anology-in-C-150x75.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-list-anology-in-C-300x150.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-list-anology-in-C-520x260.jpg 520w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/h2>\n<h2>3. What is the Requirement of Implementing a Linked List in C\/C++?<\/h2>\n<p>We already know <em>how to work with arrays in C\/C++<\/em>, which is also a linear data structure. Now, the question arises: What is the requirement of learning how to implement a linked list in C and C++ when the same purpose is served?<\/p>\n<p>Here are some of the reasons why:<\/p>\n<h4>3.1 DMA<\/h4>\n<p>DMA stands for <strong>D<\/strong>ynamic <strong>M<\/strong>emory <strong>A<\/strong>llocation. The linked list supports this concept which proves to be quite helpful when the number of elements and their sizes are not predetermined. The memory can be allocated during processing as and when required.<\/p>\n<h4>3.2 Easy modifications<\/h4>\n<p>Since the linked list supports the concept of dynamic memory allocation and data modifications such as insertion and deletion prove to quite easy to implement.<\/p>\n<h2>4. C\/C++ Linked List Implementation<\/h2>\n<p>We can implement a linked list with the help of <em><a href=\"https:\/\/data-flair.training\/blogs\/structures-in-c\/\"><strong>structures in C<\/strong><\/a><\/em>.<\/p>\n<p>In other programming languages, like Java, classes are generally used to represent linked lists as these languages support the feature of object-oriented programming.<\/p>\n<h3>4.1 Declaration<\/h3>\n<p>Before we learn how to implement a linked list in C\/C++, let us see how it to declare it. Its declaration is as follows:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">struct node\r\n{\r\nint data_element;\r\nstruct node *next;\r\n};<\/pre>\n<h3>4.2 Creating a node<\/h3>\n<p>This is how we create a linked list in C\/C++ consisting of two data elements:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">struct node *first = NULL; \r\nstruct node *second = NULL;\r\n\r\n\/* Dynamic memory allocation *\/\r\n\r\nfirst = (struct node*)malloc(sizeof(struct node)); \r\nsecond = (struct node*)malloc(sizeof(struct node)); \r\n\r\nfirst-&gt;data_element = 10; \/\/ Assigning data to the first node \r\nfirst-&gt;next = second; \/\/ Linking the first node with the second node\r\n\r\nsecond-&gt;data_element = 20; \/\/ Assigning data to the second node \r\nsecond-&gt;next = NULL; \/\/ Since third is the last node, it does not point to any other data element.\r\n\/\/ NULL denotes the termination of the linked list\r\n\r\n<\/pre>\n<p><em><strong>Before we move ahead, you should know <a href=\"https:\/\/data-flair.training\/blogs\/function-in-c-and-cpp\/\">how functions in C work<\/a>?<\/strong><\/em><\/p>\n<h3>4.3 Displaying<\/h3>\n<p>We have created the following function to <strong>display the linked list in C<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">void display(struct node *n) \/\/ Function to display the linked list\r\n{ \r\nwhile (n != NULL) \r\n{ \r\nprintf(\"%d\\n\", n-&gt;data_element); \r\nn = n-&gt;next; \r\n} \r\n}\r\n<\/pre>\n<p>We have created the following function to <strong>display the linked list in C++:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">void display(struct node *n) \/\/ Function to display the linked list\r\n{ \r\nwhile (n != NULL) \r\n{ \r\ncout&lt;&lt; n-&gt;data_element &lt;&lt; endl; \r\nn = n-&gt;next; \r\n} \r\n}<\/pre>\n<h2>5. Example of Linked List in C<\/h2>\n<p>Here is a program in C that illustrates the use of a linked list:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">#include&lt;stdio.h&gt; \r\n#include&lt;stdlib.h&gt; \r\nstruct node \r\n{ \r\nint data_element; \r\nstruct node *next; \r\n}; \r\nvoid display(struct node *n) \/\/ Function to display the linked list\r\n{ \r\nwhile (n != NULL) \r\n{ \r\nprintf(\"%d\\n\", n-&gt;data_element); \r\nn = n-&gt;next; \r\n} \r\n}\r\nint main() \r\n{\r\n\r\nprintf(\"Welcome to DatafLair tutorials!\\n\\n\");\r\n\r\n\/* Linked list with 3 pointers: first, second, and third *\/\r\n\r\nstruct node *first = NULL; \r\nstruct node *second = NULL; \r\nstruct node *third = NULL; \r\n\r\n\/* Dynamic memory allocation *\/ \r\nfirst = (struct node*)malloc(sizeof(struct node)); \r\nsecond = (struct node*)malloc(sizeof(struct node)); \r\nthird = (struct node*)malloc(sizeof(struct node)); \r\n\r\nfirst-&gt;data_element = 10; \/\/ Assigning data to the first node \r\nfirst-&gt;next = second; \/\/ Linking the first node with the second node\r\n\r\nsecond-&gt;data_element = 20; \/\/ Assigning data to the second node \r\nsecond-&gt;next = third; \/\/ Linking the second node with the third node \r\n\r\nthird-&gt;data_element = 30; \/\/ Assigning data to the third node\r\nthird-&gt;next = NULL; \/\/ Since third is the last node, it does not point to any other data element.\r\n\/\/ NULL denotes the termination of the linked list \r\ndisplay(first); \r\nreturn 0; \r\n}<\/pre>\n<p><strong>Code-\u00a0<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Linked-list-in-C.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-59519\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Linked-list-in-C.jpg\" alt=\"Example of Linked list in C\" width=\"1305\" height=\"690\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Linked-list-in-C.jpg 1305w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Linked-list-in-C-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Linked-list-in-C-300x159.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Linked-list-in-C-768x406.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Linked-list-in-C-1024x541.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Linked-list-in-C-520x275.jpg 520w\" sizes=\"auto, (max-width: 1305px) 100vw, 1305px\" \/><\/a><\/p>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Linked-lIst-in-C.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-59520 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Linked-lIst-in-C.jpg\" alt=\"Output\" width=\"1303\" height=\"680\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Linked-lIst-in-C.jpg 1303w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Linked-lIst-in-C-150x78.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Linked-lIst-in-C-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Linked-lIst-in-C-768x401.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Linked-lIst-in-C-1024x534.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Linked-lIst-in-C-520x271.jpg 520w\" sizes=\"auto, (max-width: 1303px) 100vw, 1303px\" \/><\/a><\/p>\n<h2>6. Example of Linked List in C++<\/h2>\n<p>Here is a program in C++ that illustrates the use of linked lists:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">#include &lt;iostream&gt;\r\nusing namespace std;\r\n\r\nstruct node \r\n{ \r\nint data_element; \r\nstruct node *next; \r\n}; \r\nvoid display(struct node *n) \/\/ Function to display the linked list\r\n{ \r\nwhile (n != NULL) \r\n{ \r\ncout&lt;&lt; n-&gt;data_element &lt;&lt;endl; \r\nn = n-&gt;next; \r\n} \r\n}\r\nint main() \r\n{\r\n\r\ncout&lt;&lt;\"Welcome to DatafLair tutorials!\" &lt;&lt; endl;\r\n\r\n\/* Linked list with 3 pointers: first, second, and third *\/\r\n\r\nstruct node *first = NULL; \r\nstruct node *second = NULL; \r\nstruct node *third = NULL; \r\n\r\n\/* Dynamic memory allocation *\/ \r\nfirst = (struct node*)malloc(sizeof(struct node)); \r\nsecond = (struct node*)malloc(sizeof(struct node)); \r\nthird = (struct node*)malloc(sizeof(struct node)); \r\n\r\nfirst-&gt;data_element = 10; \/\/ Assigning data to the first node \r\nfirst-&gt;next = second; \/\/ Linking the first node with the second node\r\n\r\nsecond-&gt;data_element = 20; \/\/ Assigning data to the second node \r\nsecond-&gt;next = third; \/\/ Linking the second node with the third node \r\n\r\nthird-&gt;data_element = 30; \/\/ Assigning data to the third node\r\nthird-&gt;next = NULL; \/\/ Since third is the last node, it does not point to any other data element.\r\n\/\/ NULL denotes the termination of the linked list \r\ndisplay(first); \r\nreturn 0; \r\n}<\/pre>\n<p><strong>Code-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Cpp-Linked-list.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-61601\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Cpp-Linked-list.jpg\" alt=\"C++ Linked List Example\" width=\"1301\" height=\"709\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Cpp-Linked-list.jpg 1301w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Cpp-Linked-list-150x82.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Cpp-Linked-list-300x163.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Cpp-Linked-list-768x419.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Cpp-Linked-list-1024x558.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Example-of-Cpp-Linked-list-520x283.jpg 520w\" sizes=\"auto, (max-width: 1301px) 100vw, 1301px\" \/><\/a><\/p>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Cpp-Linked-List.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-61602\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Cpp-Linked-List.jpg\" alt=\"Linked List in C++ output\" width=\"1303\" height=\"668\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Cpp-Linked-List.jpg 1303w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Cpp-Linked-List-150x77.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Cpp-Linked-List-300x154.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Cpp-Linked-List-768x394.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Cpp-Linked-List-1024x525.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-Cpp-Linked-List-520x267.jpg 520w\" sizes=\"auto, (max-width: 1303px) 100vw, 1303px\" \/><\/a><\/p>\n<h2>7. Types of Linked List in C\/C++<\/h2>\n<p>There are basically three types of linked lists in C\/C++, namely:<\/p>\n<ol>\n<li><strong>Singly linked list-<\/strong>\u00a0In this discussion, we will mainly focus on singly-linked lists. A singly linked list has only one reference, that is, \u2018next\u2019 that points to the memory address of the next element in the linked list.<\/li>\n<li><strong>Doubly linked list-<\/strong> Just as a singly linked list has one reference, that is, \u2018next\u2019 that points to the memory location of the next element, a doubly <a href=\"https:\/\/en.wikipedia.org\/wiki\/Linked_list\">linked list<\/a> has two references, called \u2018next\u2019 and \u2018previous\u2019 which refers to the next node and previous node respectively.<\/li>\n<li><strong>Circular linked list-<\/strong> A circular linked list is different from singly and doubly linked lists with respect to the memory occupied by the pointer in the last node. In a circular linked list, the last node does not contain the NULL pointer. It rather contains the memory address of the first node and hence called a circular linked list.<\/li>\n<\/ol>\n<h2>8. Limitations of Linked List<\/h2>\n<p>With positive aspects, comes negative ones as well. Here are some of the drawbacks of C\/C++ linked lists:<\/p>\n<h4>8.1 No random access to elements<\/h4>\n<p>As the name \u201clinked list\u201d itself suggests, every data item in the list is linked to its next data item. Therefore, it is not possible to randomly access any element inside the linked list. Only the sequential access of elements is permitted in a linked list.<\/p>\n<p>Arrays support the easy implementation of binary search to find an element but it is not the case with a linked list. Binary search in a linked list is quite complicated.<\/p>\n<p><em><strong>It&#8217;s time to uncover the concept of <a href=\"https:\/\/data-flair.training\/blogs\/multi-dimensional-arrays-in-c-cpp\/\">Multi-dimensional array in C\/C++<\/a><\/strong><\/em><\/p>\n<h4>8.2 Use of pointers<\/h4>\n<p>The implementation of pointers is considered to be relatively difficult, which most programmers struggle with, as it proves to be quite dangerous if left uninitialized. Moreover, pointers occupy extra space in computer memory.<\/p>\n<h2>9. Quiz on Linked List in C\/C++<\/h2>\n<p><strong><div class=\"learndash user_has_no_access\"  id=\"learndash_post_99224\"><div class=\"learndash-wrapper\">\n\n<div class=\"ld-tabs ld-tab-count-1\">\n\t\n\t<div class=\"ld-tabs-content\">\n\t\t\n\t\t\t<div role=\"tabpanel\" tabindex=\"0\" aria-labelledby=\"content\" class=\"ld-tab-content ld-visible\" id=\"ld-tab-content-59498\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\n\t<\/div> <!--\/.ld-tabs-content-->\n\n<\/div> <!--\/.ld-tabs-->\n\t\t<div class=\"wpProQuiz_content\" id=\"wpProQuiz_351\" data-quiz-meta=\"{&quot;quiz_pro_id&quot;:351,&quot;quiz_post_id&quot;:99224}\">\n\t\t\t<div class=\"wpProQuiz_spinner\" style=\"display:none\">\n\t\t\t\t<div><\/div>\n\t\t\t<\/div>\n\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_time_limit\">\n\t<div class=\"time\">\n\t\tTime limit: <span>0<\/span>\t<\/div>\n\t<div class=\"wpProQuiz_progress\"><\/div>\n<\/div>\n<div class=\"wpProQuiz_checkPage\" style=\"display: none;\">\n\t<h4 class=\"wpProQuiz_header\">\n\tQuiz Summary\t<\/h4>\n\t<p><span>0<\/span> of 15 Questions completed<\/p>\t<p>Questions:<\/p>\n\t<div class=\"wpProQuiz_reviewSummary\"><\/div>\n\n\t\n\t<input type=\"button\" name=\"endQuizSummary\" value=\"Finish Quiz\" class=\"wpProQuiz_button\" \/> <\/div>\n<div class=\"wpProQuiz_infopage\" style=\"display: none;\">\n\t<h4>Information<\/h4>\n\t\t<input type=\"button\" name=\"endInfopage\" value=\"Finish Quiz\" class=\"wpProQuiz_button\" \/> <\/div>\n<div class=\"wpProQuiz_text\">\n\t\t<div>\n\t\t<input class=\"wpProQuiz_button\" type=\"button\" \n\t\tvalue=\"Start Quiz\" name=\"startQuiz\" \/>\t<\/div>\n<\/div>\n<div style=\"display: none;\" class=\"wpProQuiz_lock\">\t\t\n\t<p>You have already completed the quiz before. Hence you can not start it again.<\/p><\/div>\n<div style=\"display: none;\" class=\"wpProQuiz_loadQuiz\">\n\t<p>\n\t\tQuiz is loading&#8230;\t<\/p>\n<\/div>\n<div style=\"display: none;\" class=\"wpProQuiz_startOnlyRegisteredUser\">\n\t<p>You must sign in or sign up to start the quiz.<\/p><\/div>\n<div style=\"display: none;\" class=\"wpProQuiz_prerequisite\">\n\t<p>You must first complete the following: <span><\/span><\/p><\/div>\n<div style=\"display: none;\" class=\"wpProQuiz_sending\">\n\t<h4 class=\"wpProQuiz_header\">Results<\/h4>\n\t<p>\n\t\t<div>\n\t\tQuiz complete. Results are being recorded.\t\t<\/div>\n\t\t<div>\n\t\t\t<dd class=\"course_progress\">\n\t\t\t\t<div class=\"course_progress_blue sending_progress_bar\" style=\"width: 0%;\">\n\t\t\t\t<\/div>\n\t\t\t<\/dd>\n\t\t<\/div>\n\t<\/p>\n<\/div>\n\n<div style=\"display: none;\" class=\"wpProQuiz_results\">\n\t<h4 class=\"wpProQuiz_header\">Results<\/h4>\n\t<p><span class=\"wpProQuiz_correct_answer\">0<\/span> of <span>15<\/span> Questions answered correctly<\/p>\t\t<p class=\"wpProQuiz_quiz_time\">\n\t\tYour time: <span><\/span>\t\t<\/p>\n\t\t\t<p class=\"wpProQuiz_time_limit_expired\" style=\"display: none;\">\n\tTime has elapsed\t<\/p>\n\n\t\t\t<p class=\"wpProQuiz_points\">\n\t\tYou have reached <span>0<\/span> of <span>0<\/span> point(s), (<span>0<\/span>)\t\t<\/p>\n\t\t<p class=\"wpProQuiz_graded_points\" style=\"display: none;\">\n\t\tEarned Point(s): <span>0<\/span> of <span>0<\/span>, (<span>0<\/span>)\t\t<br \/>\n\t\t<span>0<\/span> Essay(s) Pending (Possible Point(s): <span>0<\/span>)\t\t<br \/>\n\t\t<\/p>\n\t\t\n\t<div class=\"wpProQuiz_catOverview\" style=\"display:none;\">\n\t\t<h4>\n\t\tCategories\t\t<\/h4>\n\n\t\t<div style=\"margin-top: 10px;\">\n\t\t\t<ol>\n\t\t\t\t\t\t\t<li data-category_id=\"0\">\n\t\t\t\t\t<span class=\"wpProQuiz_catName\">Not categorized<\/span>\n\t\t\t\t\t<span class=\"wpProQuiz_catPercent\">0%<\/span>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t\t<\/ol>\n\t\t<\/div>\n\t<\/div>\n\t<div>\n\t\t<ul class=\"wpProQuiz_resultsList\">\n\t\t\t\t\t\t\t<li style=\"display: none;\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/li>\n\t\t\t\t\t<\/ul>\n\t<\/div>\n\t\t<div class=\"ld-quiz-actions\" style=\"margin: 10px 0px;\">\n\t\t\t\t<div class='quiz_continue_link\n\t\t\t\t'>\n\n\t\t<\/div>\n\t\t\t\t\t<input class=\"wpProQuiz_button wpProQuiz_button_restartQuiz\" type=\"button\" name=\"restartQuiz\"\n\t\t\t\t\tvalue=\"Restart Quiz\"\/>\t\t\t\t\t\t<input class=\"wpProQuiz_button wpProQuiz_button_reShowQuestion\" type=\"button\" name=\"reShowQuestion\"\n\t\t\t\t\tvalue=\"View Questions\" \/>\t\t\t\t\t<\/div>\n<\/div>\n<div class=\"wpProQuiz_reviewDiv\" style=\"display: none;\">\n\t<div class=\"wpProQuiz_reviewQuestion\">\n\t<ol>\n\t\t\t\t\t<li>1<\/li>\n\t\t\t\t\t<li>2<\/li>\n\t\t\t\t\t<li>3<\/li>\n\t\t\t\t\t<li>4<\/li>\n\t\t\t\t\t<li>5<\/li>\n\t\t\t\t\t<li>6<\/li>\n\t\t\t\t\t<li>7<\/li>\n\t\t\t\t\t<li>8<\/li>\n\t\t\t\t\t<li>9<\/li>\n\t\t\t\t\t<li>10<\/li>\n\t\t\t\t\t<li>11<\/li>\n\t\t\t\t\t<li>12<\/li>\n\t\t\t\t\t<li>13<\/li>\n\t\t\t\t\t<li>14<\/li>\n\t\t\t\t\t<li>15<\/li>\n\t\t\t<\/ol>\n\t<div style=\"display: none;\"><\/div>\n<\/div>\n<div class=\"wpProQuiz_reviewLegend\">\n\t<ol>\n\t\t<li class=\"learndash-quiz-review-legend-item-current\">\n\t\t\t<span class=\"wpProQuiz_reviewColor wpProQuiz_reviewQuestion_Target\"><\/span>\n\t\t\t<span class=\"wpProQuiz_reviewText\">Current<\/span>\n\t\t<\/li>\n\t\t<li class=\"learndash-quiz-review-legend-item-review\">\n\t\t\t<span class=\"wpProQuiz_reviewColor wpProQuiz_reviewColor_Review\"><\/span>\n\t\t\t<span class=\"wpProQuiz_reviewText\">Review \/ Skip<\/span>\n\t\t<\/li>\n\t\t<li class=\"learndash-quiz-review-legend-item-answered\">\n\t\t\t<span class=\"wpProQuiz_reviewColor wpProQuiz_reviewColor_Answer\"><\/span>\n\t\t\t<span class=\"wpProQuiz_reviewText\">Answered<\/span>\n\t\t<\/li>\n\t\t<li class=\"learndash-quiz-review-legend-item-correct\">\n\t\t\t<span class=\"wpProQuiz_reviewColor wpProQuiz_reviewColor_AnswerCorrect\"><\/span>\n\t\t\t<span class=\"wpProQuiz_reviewText\">Correct<\/span>\n\t\t<\/li>\n\t\t<li class=\"learndash-quiz-review-legend-item-incorrect\">\n\t\t\t<span class=\"wpProQuiz_reviewColor wpProQuiz_reviewColor_AnswerIncorrect\"><\/span>\n\t\t\t<span class=\"wpProQuiz_reviewText\">Incorrect<\/span>\n\t\t<\/li>\n\t<\/ol>\n\t<div style=\"clear: both;\"><\/div>\n<\/div>\n<div class=\"wpProQuiz_reviewButtons\">\n\t\t\t<input type=\"button\" name=\"review\" value=\"Review Question\" class=\"wpProQuiz_button2\" style=\"float: left; display: block;\"> \t\t\t\t\t<input type=\"button\" name=\"quizSummary\" value=\"Quiz Summary\" class=\"wpProQuiz_button2\" style=\"float: right;\"> \t\t\t\t<div style=\"clear: both;\"><\/div>\n\t<\/div>\n<\/div>\n<div class=\"wpProQuiz_quizAnker\" style=\"display: none;\"><\/div>\n<div style=\"display: none;\" class=\"wpProQuiz_quiz\">\n\t<ol class=\"wpProQuiz_list\">\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5601,&quot;question_post_id&quot;:99225}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>1<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>1<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">#include&lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">class Node<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">public:<\/span><\/p>\n<p><span style=\"font-weight: 400\">int data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">};<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void addl(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = (*head_ref);<\/span><\/p>\n<p><span style=\"font-weight: 400\">(*head_ref) = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void printL(Node *node)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (node != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">cout&lt;&lt;&#8221; &#8220;&lt;&lt;node-&gt;data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">node = node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* head = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 3);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 9);<\/span><\/p>\n<p><span style=\"font-weight: 400\">printL(head);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5601\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5601\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 3 9\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5601\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\">  9 3\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5601\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\">  9 3 0\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5601\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> 0 3 9\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5602,&quot;question_post_id&quot;:99226}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>2<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>2<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">#include&lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">class Node<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">public:<\/span><\/p>\n<p><span style=\"font-weight: 400\">int data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">};<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void addel(Node* prev_node, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (prev_node == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = prev_node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">prev_node-&gt;next = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void addl(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = (*head_ref);<\/span><\/p>\n<p><span style=\"font-weight: 400\">(*head_ref) = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void printL(Node *node)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (node != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">cout&lt;&lt;&#8221; &#8220;&lt;&lt;node-&gt;data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">node = node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* head = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 3);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 6);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addel(head-&gt;next, 5);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addel(head-&gt;next, 2);<\/span><\/p>\n<p><span style=\"font-weight: 400\">printL(head);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5602\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5602\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\">  6 3 2 5\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5602\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 3 6 5 2\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5602\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> 5 2 3 6\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5602\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> 2 5 6 3\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5603,&quot;question_post_id&quot;:99227}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>3<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>3<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">#include&lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">class Node<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">public:<\/span><\/p>\n<p><span style=\"font-weight: 400\">int data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">};<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void addel(Node* prev_node, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (prev_node == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = prev_node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">prev_node-&gt;next = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void addl(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = (*head_ref);<\/span><\/p>\n<p><span style=\"font-weight: 400\">(*head_ref) = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void addend(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *last = *head_ref;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (*head_ref == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">*head_ref = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (last-&gt;next != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">last = last-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">last-&gt;next = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void printL(Node *node)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (node != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">cout&lt;&lt;&#8221; &#8220;&lt;&lt;node-&gt;data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">node = node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* head = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 3);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 6);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addel(head-&gt;next, 5);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addend(&amp;head, 10);<\/span><\/p>\n<p><span style=\"font-weight: 400\">printL(head);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5603\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5603\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\">  6 3 10 5\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5603\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 3 6 5 10\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5603\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\">  6 3 5 10\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5603\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\">  5 10 3 6\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5604,&quot;question_post_id&quot;:99228}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>4<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>4<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">#include&lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">class Node<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">public:<\/span><\/p>\n<p><span style=\"font-weight: 400\">int data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">};<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void addl(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = (*head_ref);<\/span><\/p>\n<p><span style=\"font-weight: 400\">(*head_ref) = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void Delete(Node** head_ref, int key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* temp = *head_ref;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* prev = NULL;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">if (temp == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (temp != NULL &amp;&amp; temp-&gt;data == key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">*head_ref = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">delete temp; \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">else<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (temp != NULL &amp;&amp; temp-&gt;data != key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">prev = temp;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">temp = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">prev-&gt;next = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">delete temp;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void printL(Node *node)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (node != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">cout&lt;&lt;&#8221; &#8220;&lt;&lt;node-&gt;data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">node = node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* head = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 3);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 6);<\/span><\/p>\n<p><span style=\"font-weight: 400\">Delete(&amp;head, 3);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 10);<\/span><\/p>\n<p><span style=\"font-weight: 400\">printL(head);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5604\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5604\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\">  6 3 10\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5604\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 10 6\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5604\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> 6 10 \t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5604\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> 3 10 \t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5605,&quot;question_post_id&quot;:99229}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>5<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>5<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">#include&lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">class Node<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">public:<\/span><\/p>\n<p><span style=\"font-weight: 400\">int data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">};<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void addl(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = (*head_ref);<\/span><\/p>\n<p><span style=\"font-weight: 400\">(*head_ref) = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void search(Node* head, int key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* temp = head;<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (temp != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">if (temp-&gt;data == key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">{ cout&lt;&lt;&#8220;found&#8221;;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;}<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">temp = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;&#8220;not found&#8221;;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* head = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 3);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 6);<\/span><\/p>\n<p><span style=\"font-weight: 400\">search(head, 13);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 10);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5605\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5605\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> found\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5605\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> not found\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5605\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> compilation error\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5605\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> \t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5606,&quot;question_post_id&quot;:99230}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>6<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>6<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">#include&lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">class Node<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">public:<\/span><\/p>\n<p><span style=\"font-weight: 400\">int data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">};<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void addl(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = (*head_ref);<\/span><\/p>\n<p><span style=\"font-weight: 400\">(*head_ref) = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void length(Node* head)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">int count=0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* temp = head;<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (temp != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">count++;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">temp = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;count;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* head = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 3);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 6);<\/span><\/p>\n<p><span style=\"font-weight: 400\">length(head);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 10);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5606\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5606\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 3\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5606\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 1\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5606\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> 2\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5606\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> 4\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5607,&quot;question_post_id&quot;:99231}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>7<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>7<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">#include&lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">class Node<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">public:<\/span><\/p>\n<p><span style=\"font-weight: 400\">int data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">};<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void addel(Node* prev_node, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (prev_node == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = prev_node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">prev_node-&gt;next = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void addl(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = (*head_ref);<\/span><\/p>\n<p><span style=\"font-weight: 400\">(*head_ref) = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void addend(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *last = *head_ref;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (*head_ref == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">*head_ref = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (last-&gt;next != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">last = last-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">last-&gt;next = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void printL(Node *node)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (node != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">cout&lt;&lt;&#8221; &#8220;&lt;&lt;node-&gt;data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">node = node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* head = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 3);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addend(&amp;head, 10);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addel(head-&gt;next, 5);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 6);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">printL(head);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5607\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5607\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 6 3 10 5\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5607\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 3 6 5 10\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5607\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\">  6 3 5 10\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5607\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> 5 10 3 6\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5608,&quot;question_post_id&quot;:99232}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>8<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>8<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">#include&lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">class Node<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">public:<\/span><\/p>\n<p><span style=\"font-weight: 400\">int data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">};<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void addel(Node* prev_node, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (prev_node == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = prev_node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">prev_node-&gt;next = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void addl(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = (*head_ref);<\/span><\/p>\n<p><span style=\"font-weight: 400\">(*head_ref) = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void addend(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *last = *head_ref;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (*head_ref == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">*head_ref = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (last-&gt;next != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">last = last-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">last-&gt;next = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void Delete(Node** head_ref, int key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* temp = *head_ref;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* prev = NULL;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">if (temp == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (temp != NULL &amp;&amp; temp-&gt;data == key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">*head_ref = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">delete temp; \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">else<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (temp != NULL &amp;&amp; temp-&gt;data != key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">prev = temp;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">temp = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">prev-&gt;next = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">delete temp;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void printL(Node *node)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (node != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">cout&lt;&lt;&#8221; &#8220;&lt;&lt;node-&gt;data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">node = node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* head = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 3);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addend(&amp;head, 10);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addel(head-&gt;next, 5);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 6);<\/span><\/p>\n<p><span style=\"font-weight: 400\">Delete(&amp;head, 5);<\/span><\/p>\n<p><span style=\"font-weight: 400\">printL(head);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5608\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5608\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\">  6 3 5 10\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5608\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 6 3 10\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5608\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> Compilation error\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5608\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> 6 10\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5609,&quot;question_post_id&quot;:99233}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>9<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>9<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">#include&lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">class Node<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">public:<\/span><\/p>\n<p><span style=\"font-weight: 400\">int data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">};<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void addel(Node* prev_node, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (prev_node == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = prev_node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">prev_node-&gt;next = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void addl(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = (*head_ref);<\/span><\/p>\n<p><span style=\"font-weight: 400\">(*head_ref) = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void addend(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *last = *head_ref;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (*head_ref == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">*head_ref = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (last-&gt;next != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">last = last-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">last-&gt;next = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void length(Node* head)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">int count=0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* temp = head;<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (temp != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">count++;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">temp = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;count;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void Delete(Node** head_ref, int key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* temp = *head_ref;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* prev = NULL;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">if (temp == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (temp != NULL &amp;&amp; temp-&gt;data == key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">*head_ref = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">delete temp; \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">else<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (temp != NULL &amp;&amp; temp-&gt;data != key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">prev = temp;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">temp = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">prev-&gt;next = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">delete temp;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void printL(Node *node)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (node != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">cout&lt;&lt;&#8221; &#8220;&lt;&lt;node-&gt;data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">node = node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* head = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 3);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addend(&amp;head, 10);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addel(head-&gt;next, 5);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 6);<\/span><\/p>\n<p><span style=\"font-weight: 400\">Delete(&amp;head, 5);<\/span><\/p>\n<p><span style=\"font-weight: 400\">length(head);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ printL(head);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5609\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5609\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 2\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5609\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 1\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5609\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> \t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5609\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> 3\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5610,&quot;question_post_id&quot;:99234}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>10<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>10<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">#include&lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">class Node<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">public:<\/span><\/p>\n<p><span style=\"font-weight: 400\">int data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">};<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void addel(Node* prev_node, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (prev_node == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = prev_node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">prev_node-&gt;next = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void addl(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = (*head_ref);<\/span><\/p>\n<p><span style=\"font-weight: 400\">(*head_ref) = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void addend(Node** head_ref, int new_data)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">Node* new_node = new Node();<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node *last = *head_ref;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;data = new_data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">new_node-&gt;next = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (*head_ref == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">*head_ref = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (last-&gt;next != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">last = last-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">last-&gt;next = new_node;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">void delfull(Node** head_ref)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* temp = *head_ref;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* next = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (temp != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">next = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">free(temp);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">temp = next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">*head_ref = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void Delete(Node** head_ref, int key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* temp = *head_ref;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* prev = NULL;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">if (temp == NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">if (temp != NULL &amp;&amp; temp-&gt;data == key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">*head_ref = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">delete temp; \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">return;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">else<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (temp != NULL &amp;&amp; temp-&gt;data != key)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">prev = temp;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">temp = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">prev-&gt;next = temp-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">delete temp;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">void printL(Node *node)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">while (node != NULL)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">cout&lt;&lt;&#8221; &#8220;&lt;&lt;node-&gt;data;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400\">node = node-&gt;next;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">Node* head = NULL;<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 3);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addend(&amp;head, 10);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addel(head-&gt;next, 5);<\/span><\/p>\n<p><span style=\"font-weight: 400\">addl(&amp;head, 6);<\/span><\/p>\n<p><span style=\"font-weight: 400\">Delete(&amp;head, 5);<\/span><\/p>\n<p><span style=\"font-weight: 400\">delfull(&amp;head);<\/span><\/p>\n<p><span style=\"font-weight: 400\">printL(head);<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5610\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5610\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 6 3 5 10\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5610\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> \t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5610\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> compilation error\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5610\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> none of the above\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5611,&quot;question_post_id&quot;:99235}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>11<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>11<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">Which among the following is the disadvantage of linked list as compared to array?<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5611\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5611\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> More memory is needed for linked list\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5611\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\">  It is a dynamic data structure\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5611\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> Efficient memory utilization\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5611\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\">  Easy insert delete operation\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5612,&quot;question_post_id&quot;:99236}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>12<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>12<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">\u00a0Identify the type of linked list whose last pointer contains the address of the first node.<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5612\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5612\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\">  Singly\u2019\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5612\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> Doubly\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5612\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> Circular\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5612\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> none of the above\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5613,&quot;question_post_id&quot;:99237}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>13<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>13<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">Identify the linked list in which each node contains the pointer to the next and previous node.<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5613\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5613\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> Circular\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5613\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\">  Singly\u2019\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5613\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> Doubly\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5613\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> None of the above\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5614,&quot;question_post_id&quot;:99238}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>14<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>14<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">Which among the following is the advantage of linked lists?<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5614\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5614\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\">  Ease of insertion and deletion\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5614\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> Random access not allowed\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5614\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\">  Extra memory space\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5614\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> None of the above\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:5615,&quot;question_post_id&quot;:99239}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>15<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>15<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">Which among the following operations is not possible in a linked list but possible in an array?<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"5615\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5615\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> Can store any data type\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5615\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> Memory allocation is done during run time\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5615\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> Random access of data\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_351_5615\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> None of the above\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t<\/ol>\n\t<\/div>\n\t\t<\/div>\n\t\t\n<\/div> <!--\/.learndash-wrapper-->\n<\/div><\/strong><\/p>\n<h2>10. Summary<\/h2>\n<p>Linked lists in C\/C++ are the 2nd most used data structure after arrays. A linked list is a dynamic data structure that came into existence to overcome the limitations of Arrays. The concept of linked lists is a must for every C\/C++ programmer.\u00a0Now, you are acquainted with the concept of a linked list.<\/p>\n<p>We have much more amazing and exciting tutorials for C Programming, that you can&#8217;t afford to miss.<\/p>\n<p>Don&#8217;t forget to provide us your precious reviews by commenting below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A linked list in C\/C++ is basically a linear data structure based on the concept of dynamic memory allocation. It is implemented with the help of pointers. The linked list in C and C++&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":61621,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19488],"tags":[20158,20159,20406,20160,20157],"class_list":["post-59498","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-programming","tag-c-linked-list","tag-c-linked-list-example","tag-c-linked-list-drawbacks","tag-linked-list-in-c-tutorial","tag-linked-list-program-in-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Linked List in C\/C++ Fascinating Tactics that will improvise your skills - DataFlair<\/title>\n<meta name=\"description\" content=\"Linked list in C\/C++ is a linear data structure based on the dynamic memory allocation. Explore the requirements, implementation process, types with real-time example\" \/>\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\/linked-list-in-c-cpp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linked List in C\/C++ Fascinating Tactics that will improvise your skills - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Linked list in C\/C++ is a linear data structure based on the dynamic memory allocation. Explore the requirements, implementation process, types with real-time example\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/\" \/>\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=\"2019-06-17T06:35:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-23T07:56:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair 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=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linked List in C\/C++ Fascinating Tactics that will improvise your skills - DataFlair","description":"Linked list in C\/C++ is a linear data structure based on the dynamic memory allocation. Explore the requirements, implementation process, types with real-time example","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\/linked-list-in-c-cpp\/","og_locale":"en_US","og_type":"article","og_title":"Linked List in C\/C++ Fascinating Tactics that will improvise your skills - DataFlair","og_description":"Linked list in C\/C++ is a linear data structure based on the dynamic memory allocation. Explore the requirements, implementation process, types with real-time example","og_url":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-06-17T06:35:28+00:00","article_modified_time":"2021-07-23T07:56:33+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Linked List in C\/C++ Fascinating Tactics that will improvise your skills","datePublished":"2019-06-17T06:35:28+00:00","dateModified":"2021-07-23T07:56:33+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/"},"wordCount":1337,"commentCount":11,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp.jpg","keywords":["C linked list","c linked list example","C++ Linked list drawbacks","linked list in c tutorial","linked list program in c"],"articleSection":["C Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/","url":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/","name":"Linked List in C\/C++ Fascinating Tactics that will improvise your skills - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp.jpg","datePublished":"2019-06-17T06:35:28+00:00","dateModified":"2021-07-23T07:56:33+00:00","description":"Linked list in C\/C++ is a linear data structure based on the dynamic memory allocation. Explore the requirements, implementation process, types with real-time example","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Linked-List-in-C-and-Cpp.jpg","width":802,"height":420,"caption":"Linked List in C and Cpp"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/linked-list-in-c-cpp\/#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":"Linked List in C\/C++ Fascinating Tactics that will improvise your skills"}]},{"@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\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/59498","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=59498"}],"version-history":[{"count":7,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/59498\/revisions"}],"predecessor-version":[{"id":99309,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/59498\/revisions\/99309"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/61621"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=59498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=59498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=59498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}