What is the difference between Array and List?

Junior C#

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.

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