数组:
int[] fib
fib = new int[100];
索引:
fib[0] = fib[1] = 1;
属性:
[attribute(AllowMultiple=true)]
指针:
unsafe fixed ( int* p = fib )
{
p[0] = p[1] = 1;
for( int i=2; i<100; ++i ) p[i] = p[i-1] + p[i-2];
}
int[] fib
fib = new int[100];
索引:
fib[0] = fib[1] = 1;
属性:
[attribute(AllowMultiple=true)]
指针:
unsafe fixed ( int* p = fib )
{
p[0] = p[1] = 1;
for( int i=2; i<100; ++i ) p[i] = p[i-1] + p[i-2];
}
[attribute(AllowMultiple=true)]
属性 [ ] 内的内容被编译吗,内容可否为任意