How can you change the size of an array in C#?

What will be an ideal response?

You can change the size of an array associated with an identifier, if necessary. For example, if you declare int[] array;, you can assign five elements later with array = new int[5];; later in the program, you might alter the array size to 100 with array = new int[100];. Still later, you could alter it again to be either larger or smaller. This feature is not allowed in most other programming languages. If you resize an array in this manner, the same identifier refers to a new array in memory and all the values are set to 0.

Computer Science & Information Technology

You might also like to view...

A ________ is the arrangement of objects on a slide

A) slide design B) slide transition C) slide layout D) slide master

Computer Science & Information Technology

A(n) ________ cell is a cell that supplies a value to the formula in the active cell

Fill in the blank(s) with correct word

Computer Science & Information Technology