|
Listing 14-4 extracted from chapter Unsafe code, exceptions, anonymous methods, iterators
Listing 14-3< > Listing 14-5
This listing can be compiled with the command line: csc.exe /unsafe /target:exe Example_14_4.cs Errors: 0 Warnings: 0
Example_14_4.cs
public class Program {
unsafe public static void Main(){
int * array = stackalloc int[100];
for( int i = 0; i< 100 ; i++ )
array[i] = i*i;
}
}
Copyright Patrick Smacchia 2006 2007
|