public class MyClass
{
public unsafe static void Main()
{
int * buf = stackalloc int [5];
for(int i = 0; i < 5; i++)
buf[i] = i;
for(int i = 0; i < 5; i++)
Console.WriteLine(buf[i]);
}
}
[/csharp]
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok