//_22_数组初始化
//_22_main.cpp
//重点掌握一维数组和二维数组初始化!!!!
#include <stdio.h>
#include <stdlib.h>
int main()
{
int array1[]={1,2,3,4,5,6,7,8,9,10};
char array2[13]="how are you?";
char array3[13]={'h','o','w',' ','a','r','e',' ','y','o','u','?'};
char array4[]="how are you?";
int array5[][6]={{1,2,3,4},
{2,3,4,5,6},
{2,3,4,5,6},
{3,4},
{4,5,6},
{5,6}};
system("pause");
return 0;
}
22_数组初始化
最新推荐文章于 2024-09-08 18:38:03 发布