Question: What are the advantages of linked list over array ?
Difference
between Array and Linked List
The
comparison between linked list and arrays is as shown below ‒

1.
The linked list is a collection of nodes and each node is having one data field
and next link field.
For
example:

2.
Any element can be accessed by sequential access only.
3.Physically
the data can be deleted.
4.Insertions
and deletion of data is easy.
5.
Memory allocation is dynamic. Hence developer can allocate as well as
deallocate the memory. And SO no wastage of memory is there.
1.
The array is a collection of similar types of data elements. In arrays the data
is always stored at some index of the
array.
For
example:

2.
Any element can be accessed randomly i.e.with the help of index of the array.
3.
Only logical deletion of the data is possible.
4.
Insertions and deletion of data is difficult.
5.
The memory allocation is static. Hence once the fixed amount of size is
declared then that much memory is allocated. Therefore there is a chance of
either memory wastage or memory shortage.
Review Question
1. What are the
advantages of linked list over array ?
Data Structures using C PlusPlus: Chapter 5: Linked Lists : Tag: Data Structure, C++ Programing : - Difference between Array and Linked List
Data Structures using CPlusPlus
CS25C05 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation
English Essentials II
EN25C02 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation
Tamils and Technology தமிழர்களும் தொழில்நுட்பமும்
UC25H02 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation
Linear Algebra
MA25C02 2nd Semester | 2025 Regulation
Electron Devices
EC25C01 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation
Data Structures using CPlusPlus
CS25C05 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation
Circuits and Network Analysis
EC25C02 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation
Re-Engineering for Innovation
ME25C05 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation
Engineering Drawing - Laboratory
ME25C01 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation
Data Structures using CPlusPlus - Laboratory
CS25C05 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation
Devices and Circuits Laboratory
EC25C03 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation