Arrays

Sep 26 2003 5:12 AM
How can i declare ,initialize access an dynamic array in C# For example the syntax of PB is which i need to access it in C# int a[]; a[]={1,2,3,4};//initializes the array a[30]=123;/*increases the size of an array to 30 assigning the 30th element to 123 and remaining elements between 4 and 30th to 0s*/

Answers (2)