数组

char[] vowels = new char[5];

char[] b = new char[5]{'a','e','i','o','u'};

char[] b = 'a','e','i','o','u'};

所有数组都继承自system.array ,提供了通用服务,

二维数组

int[,] m = new int[2,3];

锯齿数组

int[][] n = new int[3][];

 

CLR 对数组索引越界做检查

超出了边界 抛异常;

unsafe 可以越过检查

 

posted @ 2015-06-10 15:49  hlhxd  阅读(112)  评论(0)    收藏  举报