C Sharp (C#) - Collections
Which of the following is the correct way to declare a collection that can grow in size in C#?
int[] numbers = new int[5]; declares a fixed-size array, not a collection.List<int> numbers = new List<int>(); correctly declares a generic list collection that can grow.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions