Arrays
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*/
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mahesh ChandRank #1 · 393.3K reputationPosted Sep 26, 2003, 4:29 AM EDT
Bill FarleyRank #1,434 · 1.1K reputationPosted Sep 26, 2003, 12:52 PM EDT