How do I do something like this c code in c#?
int *p=new int[100];
Simple, declare an integer array, like this:
// Declare an integer array.
int[] p = new int[100];
This will create an integer array with 100 elements in it.
Hopet his helps.
--
- Nicholas Paldino [.NET/C# MVP]
- nicholas...@exisconsulting.com
"Jakop Nielsen" <j...@home.mail.dk> wrote in message
news:bcvivk$1k5k$1...@news.cybercity.dk...
"Jakop Nielsen" <j...@home.mail.dk> wrote in message
news:bcvivk$1k5k$1...@news.cybercity.dk...
see section 25.7 Stack allocation and 25.8 Dynamic memory allocation
of the C# Spec.
Marcus