0
点赞
收藏
分享

微信扫一扫

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

我是小瘦子哟 2022-08-18 阅读 92

#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

 

举报

相关推荐

0 条评论