What are the differences between List and an array in C#? Arrays
What are the differences between List<T> and an array in C# Arrays
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
sasikala sRank #1,091 · 1.7K reputationPosted Jul 8, 2025, 12:32 AM EDT
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
Jignesh KumarRank #91 · 22.9K reputationPosted Jul 8, 2025, 11:31 PM EDT
Hello Kiran,
Here are key differences between both,