首页 > 编程语言 > 详细

c语言数组类型默认值(c99)

时间:2019-08-10 20:25:46      阅读:216      评论:0      收藏:0      [点我收藏+]
#include <stdio.h>
#include <stdlib.h>

int main() {
    int arr[6] = {0}; //每个值默认0
    for(int i = 0; i < len; i ++)
        printf("%d\n",arr[i]);
    return 0;
}
输出
========================================
0 0 0 0 0 0

 

c语言数组类型默认值(c99)

原文:https://www.cnblogs.com/passedbylove/p/11332630.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!