填空题
定义长度为12的数组,下面四种方法中正确的有
【18】
。
① int x[12]; ② int n=12; ③ const int n=12; ④ int x[]=1,2;
int x[n]; int x[n];
【参考答案】
①③
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
以下程序的功能是对从键盘上输入的两个字符串进行比较,然后输出两个字符串中第一个不相同字符的ASCII码值之差。请填空。 #include stdio.h main() char a1[20],a2[20]; int n=0,t; scanf( %st ,a1); scanf( %s ,a2); while(a1[n]!=a2[n]&&(a1[n]!= 【15】 )) t= 【16】 ; printf( %d n ,t); n++;
点击查看答案
填空题
以下程序段用于构成一个简单的单向链表。请填空。 struet STRU int x,y; float rate; 【14】 p; a,b; a.x=0; a.y=0;a.rate=0;a.p=&b; b.x=0;b.y=0;b.rate=0;b.p=NULL;
点击查看答案
相关试题
下面程序把从终端读入的10个整数以二进制...
若有如下程序: void sub() static i...