new [] 与new []()区别

来源:互联网 发布:uefi linux 编辑:程序博客网 时间:2024/06/05 14:59


new int[10] ;new int[]();

前者是随机值,后者会初始化为0;
原创粉丝点击