填空题
main() {inta[]={2,4,6},*ptr=&a[0],x=8,y,z; for(y=0;y<3;y++) {z=(*(ptr+y)<y)*(ptr+y):x; printf("%d\n",z);} } 程序运行结果是:_________
【参考答案】
888
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
struct abc {char a[20]={0}; char b;} main() {struct abc studl[10]; int a; for(a=0;a<10;a++) scanf( %s ,a); } 错误:______ 改正:______
点击查看答案&解析
填空题
#include stdio.h main() {FILE*I=fp;char ch; if((fp=fopen( test.txt , w ))==NULL) {printf( cannot open file n );exit(0);} ch=getchar(); while(ch!=’$’) {fputc(ch,fp);putchar(ch); ch=getchar();} fclose(*fp); } 错误:______ 改正:______
点击查看答案&解析
相关试题
⑧09H
⑦第2位
⑥启动定时器T1工作
⑤0
④07H