What are the differences between List and an array in C#? Arrays
Loading
What are the differences between List and an array in C#? Arrays
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Jul 9, 2025, 3:31 AM
Hello Kiran,
Here are key differences between both,
sasikala sPosted Jul 8, 2025, 4:32 AM
In C#, both
Listand arrays are used to store collections of elements,Array: Fixed size. Once created, its size cannot be changed.
int[] numbers = new int[5]; // Fixed size
List: Dynamic size. It can grow or shrink as needed using methods like
Add(),Remove(), etc.List numbers = new List(); // Dynamic size