c语言中如何给数组定义并赋初值?答:字符串数组定义赋值:char c[6]={'c', ' h ', 'i', 'n', 'a' , '\0' } 整数数组定义赋值:int a[5]={1,2,3,4,5};int a[5];for(int i=0;i<5;i++)a[i]=i;定义float数组并赋值:float b[10]={1.1,2.2,3.3,4.4,5.5,6.6,7.7,8.8,9.9,0.0} ...
c语言数组定义和赋值是什么?答:c语言数组定义是:char c[6]={'c', ' h ', 'i', 'n', 'a' , '\0' };整数数组定义赋值是:int a[5]={1,2,3,4,5};int a[5];for(int i=0;i<5;i++)a[i]=i;定义float数组并赋值:float b[10]={1.1,2.2,3.3,4.4,5.5,6.6,7.7,8.8,9.9,0.0} ...