Skip to main content

What is the difference between Array and List?

Junior C#
Quick Answer Arrays are fixed-size รขโ‚ฌโ€ defined upfront, never changes. Lists are dynamic รขโ‚ฌโ€ grow and shrink as needed. Arrays are slightly faster for indexed access. Lists give you Add(), Remove(), Contains() and more. Use List by default unless size is fixed and performance is critical.

Answer

First: An array has a fixed size.
Second: A List can grow or shrink dynamically.
Arrays are faster for fixed collections, Lists are flexible and easier to use.

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice