<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":503,"date":"2021-07-13T17:09:42","date_gmt":"2021-07-13T17:09:42","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=503"},"modified":"2021-09-13T06:43:50","modified_gmt":"2021-09-13T06:43:50","slug":"difference-between-array-and-linked-list","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/","title":{"rendered":"Difference between Array and Linked List ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"difference-between-array-and-linked-list\" class=\"color-pink\">Difference between Array and Linked List ?<\/h2>\n<\/div>\n<\/div>\n<div class=\"table-responsive\">\n<table class=\"table-bordered table-striped table table-responsive\">\n<tbody>\n<tr>\n<th>Array<\/th>\n<th>Linked List<\/th>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">Arrays are index-based data structure where each element<br \/>\nassociated with an index.<\/td>\n<td class=\"text-leftalign\"><a href=\"https:\/\/www.wikitechy.com\/technology\/quicksort-doubly-linked-list-3\/\" target=\"_blank\" rel=\"noopener\">Linked list<\/a>\u00a0relies on references where each node consists of the data and the references to the previous and next element (in case of a doubly linked list) or the next element (in case of a singly linked list).<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">Array provides fast and random access.<\/td>\n<td class=\"text-leftalign\">Elements can\u2019t be accessed randomly but can be<br \/>\naccessed only sequentially and accessing element takes 0(n) time.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">Elements are stored in consecutive manner in memory.<\/td>\n<td class=\"text-leftalign\">Elements can be stored at any available place as<br \/>\naddress of node is stored in previous node.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">Insertion &amp; deletion takes more time in array as elements<br \/>\nare stored in consecutive memory locations.<\/td>\n<td class=\"text-leftalign\">Insertion &amp; deletion are fast &amp; easy in linked list<br \/>\nas only value of pointer is needed to change.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">In array, memory is allocated at compile time<br \/>\ni.e. Static Memory Allocation.<\/td>\n<td class=\"text-leftalign\">Memory is allocated at run time<br \/>\ni.e.\u00a0Dynamic Memory\u00a0Allocation.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">Array can be single dimensional, two dimensional<br \/>\nor multidimensional.<\/td>\n<td class=\"text-leftalign\">Linked list can be singly, doubly or circular<br \/>\nlinked list.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">Each element is independent, no connection with previous<br \/>\nelement or with its location.<\/td>\n<td class=\"text-leftalign\">Location or address of elements is stored in the<br \/>\nlink part of previous element\/node.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"text-center row\">\n<div class=\"col-sm-12\">\n<div id=\"bsa-zone_1590522538159-8_123456\"><\/div>\n<\/div>\n<\/div>\n<div class=\"ImageContent\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list.jpg\" alt=\"Difference between Array and Linked List\" \/><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer : Arrays are index-based data structure&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[3028],"tags":[195,3525,3545,971,491,3546,3547,3553,3550,3539,3536,3543,3552,3548,3544,3538,3540,221,368,203,199,214,198,363,3057,205,3535,3523,3534,3529,3531,3533,3532,3530,3524,3537,3541,3528,222,484,3054,196,212,15933,3542,3549,3551,3527,207,366,204,206,972,200,3055,197,3526,968,3056,285,969],"class_list":["post-503","post","type-post","status-publish","format-standard","hentry","category-data-structure","tag-accenture-interview-questions-and-answers","tag-advantages-and-disadvantages-of-linked-list-over-array","tag-advantages-of-linked-list-over-array","tag-altimetrik-india-pvt-ltd-interview-questions-and-answers","tag-applied-materials-interview-questions-and-answers","tag-array-and-linked-list","tag-array-linked-list","tag-array-of-linked-list","tag-array-of-linked-lists-java","tag-array-vs-linked-list","tag-array-vs-list-c","tag-arraylist-and-linked-list","tag-arraylist-and-linkedlist","tag-arraylist-and-linkedlist-in-java","tag-arraylist-linkedlist","tag-arraylist-vs-linkedlist","tag-arraylist-vs-linkedlist-in-java","tag-bharti-airtel-interview-questions-and-answers","tag-bmc-software-interview-questions-and-answers","tag-capgemini-interview-questions-and-answers","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-cgi-group-inc-interview-questions-and-answers","tag-chetu-interview-questions-and-answers","tag-ciena-corporation-interview-questions-and-answers","tag-collabera-te-interview-questions-and-answers","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-difference-between-array-and-arraylist","tag-difference-between-array-and-linked-list","tag-difference-between-array-and-linked-list-in-java","tag-difference-between-array-and-list","tag-difference-between-array-and-list-c","tag-difference-between-array-and-list-in-c","tag-difference-between-array-and-list-in-java","tag-difference-between-array-and-list-python","tag-difference-between-arraylist-and-linked-list","tag-difference-between-arraylist-and-linkedlist","tag-difference-between-arraylist-and-linkedlist-in-java","tag-difference-between-singly-linked-list-and-doubly-linked-list","tag-flipkart-interview-questions-and-answers","tag-genpact-interview-questions-and-answers","tag-globallogic-india-pvt-ltd-interview-questions-and-answers","tag-ibm-interview-questions-and-answers","tag-indecomm-global-services-interview-questions-and-answers","tag-infozech-interview-questions-and-answers","tag-java-linkedlist-vs-arraylist","tag-linked-list-array","tag-linked-list-using-array","tag-linked-list-vs-array-performance","tag-mphasis-interview-questions-and-answers","tag-netapp-interview-questions-and-answers","tag-oracle-corporation-interview-questions-and-answers","tag-sap-labs-india-pvt-ltd-interview-questions-and-answers","tag-sapient-consulting-pvt-ltd-interview-questions-and-answers","tag-tech-mahindra-interview-questions-and-answers","tag-tracxn-technologies-pvt-ltd-interview-questions-and-answers","tag-unitedhealth-group-interview-questions-and-answers","tag-what-is-the-difference-between-array-and-pointer","tag-wipro-infotech-interview-questions-and-answers","tag-wm-global-technology-services-india-pvt-ltd-limited-wmgts-interview-questions-and-answers","tag-xoriant-solutions-pvt-ltd-interview-questions-and-answers","tag-yodlee-infotech-pvt-ltd-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Difference between Array and Linked List ? - Data Structure<\/title>\n<meta name=\"description\" content=\"Difference between Array and Linked List ? - The major difference between Array and Linked list regards to their structure. Arrays are index based data structure\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Difference between Array and Linked List ? - Data Structure\" \/>\n<meta property=\"og:description\" content=\"Difference between Array and Linked List ? - The major difference between Array and Linked list regards to their structure. Arrays are index based data structure\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-13T17:09:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-13T06:43:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list.jpg\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/\",\"name\":\"Difference between Array and Linked List ? - Data Structure\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list.jpg\",\"datePublished\":\"2021-07-13T17:09:42+00:00\",\"dateModified\":\"2021-09-13T06:43:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Difference between Array and Linked List ? - The major difference between Array and Linked list regards to their structure. Arrays are index based data structure\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/#primaryimage\",\"url\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list.jpg\",\"contentUrl\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list.jpg\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Difference between Array and Linked List ? - Data Structure","description":"Difference between Array and Linked List ? - The major difference between Array and Linked list regards to their structure. Arrays are index based data structure","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:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/","og_locale":"en_US","og_type":"article","og_title":"Difference between Array and Linked List ? - Data Structure","og_description":"Difference between Array and Linked List ? - The major difference between Array and Linked list regards to their structure. Arrays are index based data structure","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/","og_site_name":"Wikitechy","article_published_time":"2021-07-13T17:09:42+00:00","article_modified_time":"2021-09-13T06:43:50+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list.jpg"}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/","name":"Difference between Array and Linked List ? - Data Structure","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list.jpg","datePublished":"2021-07-13T17:09:42+00:00","dateModified":"2021-09-13T06:43:50+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Difference between Array and Linked List ? - The major difference between Array and Linked list regards to their structure. Arrays are index based data structure","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list\/#primaryimage","url":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list.jpg","contentUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/difference-between-array-and-linked-list.jpg"},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=503"}],"version-history":[{"count":4,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/503\/revisions"}],"predecessor-version":[{"id":3499,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/503\/revisions\/3499"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}