#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)
猜你喜欢
转载自www.cnblogs.com/passedbylove/p/11332630.html
今日推荐
周排行