[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-685792-105":59,"doc-detail-685792-en":130,"doc-similar-685792":154},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","array-implementation-of-list-array-operations-create-insert-delete-display-search","Array Implementation of List - Array Operations (Create, Insert, Delete, Display, Search)","","Array Implementation of List content defines an array as a static data structure with fixed size stored in consecutive memory locations. It explains limitations and costs of array-based operations, highlighting expensive insertion and deletion due to element shifting. The material presents five core routines—Create, Insert, Delete, Display/Traversing, and Search—with C code snippets, input/output prompts, and stepwise examples showing how elements move during insertion and deletion.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/array-implementation-of-list-array-operations-create-insert-delete-display-search/685792/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/array-implementation-of-list-array-operations-create-insert-delete-display-search/685792.png","ImageObject",300,407,{"name":92,"@type":93},"Adam","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-12","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is an array-based list and why is it considered static?","Question",{"text":112,"@type":113},"An array stores same-type data in consecutive memory locations. Its size is fixed and memory is allocated in advance, so it behaves as a static data structure.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Why are insertion and deletion operations expensive in an array list?",{"text":117,"@type":113},"Insertion and deletion require shifting subsequent elements by one position to the right or left. This involves multiple data movements, making the operations costly.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the delete operation work at a specific position?",{"text":121,"@type":113},"To delete an element at position pos, elements after pos are shifted one position toward the left. The size counter n is then decreased by one.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},685792,1794018669,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":14,"preview_urls":145},1374404737137,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","ROHINI COLLEGE OF ENGINEERING & TECHNOLOGY  \nARRAY IMPLEMENTATION OF LIST  \nArray is a collection of specific number of same type of data stored in consecutive memory locations. Array is a static data structure i.e., the memory should be allocated in advance and the size is fixed. This will waste the memory space when used space is less than the allocated space.  \nInsertion and Deletion operation are expensive as it requires more data movements. Find and Print list operations takes constant time.  \nA[0] A[1] A[2] A[3] A[4] A[6]  \n\\#define maxsize 10 int list[maxsize], n ;  \n1. Create Operation:  \nCreate operation is used to create the list with „ n „ number of elements .If „ n „  \nexceeds the array’s maxsize, then elements cannot be inserted into the list. Otherwise the  \narray elements are stored in the consecutive array locations (i.e.) list [0], list [1] and so on.  \nvoid Create ( )  \n{  \nint i;  \nThe basic operations performed on a list of elements area. Creation of List.  \nb. Insertion of data in the List  \nc. Deletion of data from the List  \nd. Display all data’s in the List  \ne. Searching for a data in the list  \nDeclaration of Array:  \n\n| 20 | 10 | 30 | 40 | 50 | 60 |\n| --- | --- | --- | --- | --- | --- |\n\nprintf(\"\\n Enter the number of elements to be added in the list:\\t\"); scanf(\"%d\",&n);  \nprintf(\"\\nEnter the array elements:\\t\");  \nfor(i=0;i\u003Cn;i++)  \nROHINI COLLEGE OF ENGINEERING & TECHNOLOGY  \nscanf(\"%d\",&list[i]);}  \nIf n=6, the output of creation is as follows: list[6]  \n\n| 20 | 10 | 30 | 40 | 50 | 60 |\n| --- | --- | --- | --- | --- | --- |\n\nA[0] A[1] A[2] A[3] A[4] A[6]  \n2. Insert Operation:  \nInsert operation is used to insert an element at particular position in the existing list.  \nInserting the element in the last position of an array is easy. But inserting the element at a  \nparticular position in an array is quite difficult since it involves all the subsequent elements  \nto be shifted one position to the right.  \nRoutine to insert an element in the array:  \nvoid Insert( )  \n{ int i,data,pos;  \nprintf(\"\\n Enter the data to be inserted:\\t\");  \nscanf(\"%d\",&data);  \nprintf(\"\\n Enter the position at which element to be inserted:\\t\");  \nscanf(\"%d\",&pos);  \nif (pos==n)  \nprintf (“Array overflow”);  \nfor(i = n-1 ; i >= pos-1 ; i--)  \nlist[i+1] = list[i];  \nlist[pos-1] = data;  \nn=n+1; Display();}  \nROHINI COLLEGE OF ENGINEERING & TECHNOLOGY  \nConsider an array with 5 elements [max elements = 10]  \nIf data 15 is to be inserted in the 2nd position, then 50 has to be moved to next index position, 40 has to be moved to 50 position, 30 has to be moved to 40 position and 20 has tobe moved to 30 position.  \n3. Deletion Operation:  \nDeletion is the process of removing an element from the array at any position.  \nDeleting an element from the end is easy. If an element is to be deleted from any particular  \nposition, it requires all subsequent element from that position is shifted one position  \ntowards left.  \nRoutine to delete an element in the array:  \nvoid Delete( )  \n{ int i, pos ;  \nprintf(\"\\nEnter the position of the data to be deleted:\\t\");  \nscanf(\"%d\",&pos);  \nprintf(\"\\nThe data deleted is:\\t %d\", list[pos-1]); for(i=pos-1;i\u003Cn-1;i++)  \nlist[i]=list[i+1];  \nn=n-1;  \n\n| 10 | 20 | 30 | 40 | 50 |  |  |  |  |  |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n\n\n| 10 |  | 20 | 30 | 40 | 50 |  |  |  |  |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n\nAfter this four data movement, 15 is inserted in the 2nd position of the array.  \n\n| 10 | 15 | 20 | 30 | 40 | 50 |  |  |  |  |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n\nROHINI COLLEGE OF ENGINEERING & TECHNOLOGY  \nDisplay();}  \nConsider an array with 5 elements [max elements = 10]  \n\n| 10 | 20 | 30 | 40 | 50 |  |  |  |  |  |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n\nIf data 20 is to be deleted from the array, then 30 has to be moved to data 20 position, 40 has to be moved to data 30 position and 50 has ","cbCaifehL53fwXSD","https://ap.wps.com/l/cbCaifehL53fwXSD","pdf",579898,11,"English","# Array basics\n# Create operation\n# Insert operation\n# Deletion operation\n# Display / traversing operation\n# Search operation\n# Full program menu (create, insert, delete, display, search)","[{\"question\":\"What is an array-based list and why is it considered static?\",\"answer\":\"An array stores same-type data in consecutive memory locations. Its size is fixed and memory is allocated in advance, so it behaves as a static data structure.\"},{\"question\":\"Why are insertion and deletion operations expensive in an array list?\",\"answer\":\"Insertion and deletion require shifting subsequent elements by one position to the right or left. This involves multiple data movements, making the operations costly.\"},{\"question\":\"How does the delete operation work at a specific position?\",\"answer\":\"To delete an element at position pos, elements after pos are shifted one position toward the left. The size counter n is then decreased by one.\"}]","Array Implementation of List - Array Operations (Create, Insert, Delete, Display, Search) | PDF",28,[146,150],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/bee43f6b766ff792b40ac971829ff28d.webp",983,1389,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/ac72c4811889c24626d6474c952bb9bd.webp",982,1388,{"list":155,"token":66},[156,162,168,174,180,186,192,198,204,210],{"doc_id":157,"doc_title":158,"file_type":137,"home_preview_img_url":159,"slug":160,"view_count":29,"category_name":30,"create_tm":161},685764,"Lists and Linked Lists - Part 1 - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999691137/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=9sMEskCUPlzx%2BxWTSxx1Q8DVBrs%3D","lists-and-linked-lists-part-1-introduction",1794017635,{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":29,"category_name":30,"create_tm":167},685666,"Lecture 6 - List ADT","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000175827/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=PlsirIafvZnH6tmR4JdGzADf6EA%3D","lecture-6-list-adt",1794016534,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":29,"category_name":30,"create_tm":173},697937,"Doubly Linked List - Basic Operations and Circular Linked List","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010136388/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=upYW7UlnKiM99yKnD3JHznOvc14%3D","doubly-linked-list-basic-operations-and-circular-linked-list",1794446062,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":19,"category_name":30,"create_tm":179},697946,"Sequence Interface - Sequence Interface（L02, L07）","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010141005/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=k6OO0EuYr6Gd4BkYiPSUF1NcASI%3D","sequence-interface-sequence-interfacel02-l07",1794446272,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":81,"category_name":30,"create_tm":185},685724,"LINKED LISTS - Chapter 3 - overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000182527/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=krHIRlOED33cc0NX5TT2jwbftJg%3D","linked-lists-chapter-3-overview",1794016986,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":24,"category_name":30,"create_tm":191},685686,"ArrayList in Java","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000179246/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=JExJyRx0La%2BhLgIOpZwSOXY%2FjIE%3D","arraylist-in-java",1794016760,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":19,"category_name":30,"create_tm":197},732878,"Linked Lists - Overview - Advantages and Operations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031780342/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=Q5W9v893IlC9uCY2%2F8CkxTbVt%2B8%3D","linked-lists-overview-advantages-and-operations",1795382677,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":24,"category_name":30,"create_tm":203},685716,"Linked Lists - Introduction - Properties, Advantages, Disadvantages, and Types","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999688533/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=evgUSj7gHf4miXp%2FzO9l47PWgYE%3D","linked-lists-introduction-properties-advantages-disadvantages-and-types",1794016969,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":19,"category_name":30,"create_tm":209},685800,"Data Structures - CS 225 Array Lists","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000212942/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=nJkjUfz0Z1dagqkhsvwUxq%2Bp4W4%3D","data-structures-cs-225-array-lists",1794018696,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":24,"category_name":30,"create_tm":215},689391,"CHAPTER 3 - Typing and Editing Text - Text Entry and Editing Basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001609043/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=%2FLYHdneciFJ1jrhILkT4EirvSYw%3D","chapter-3-typing-and-editing-text-text-entry-and-editing-basics",1794106435]