char型数组难道可以储存整数吗答:char型, 就是1字节整型,只要数值在1字节范围内,就可以1个字节存1个数。例如:char s[10]={ 31, 32,33,34,35,36,37,38,39,40};int i; for (i=0;i<10;i++) printf("%d ",s[i]);输出: 31 32 33 34 35 36 37 38 39 40 另外,也可以以字符串形式存放整数:char s[10...
C语言 定义一个字符数组答:单片机程序的话就如下:unsigned char shuzi[]={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c};unsigned char shuzi[]={'1','2','3','4','5','6','7','8','9',"10","11","12"};字符的话单个才用引号 2个以上就得用双引号啦 建议用第一种方法 ...