皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
以下程序用来统计文件中字符个数,请填空。 #include #include main() { FILE *fp;long num=0L; if((fp=fopen("fname.dat","r"))==NULL) {printf("Open error\n"); exit(0); } while ( __________ ) {fgetc(fp);num++;} printf("num=%d\n",num-1); fclose( fp); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】请写出以下程序的运行结果: #include void main( ) { int n=6; if (n++ >6) printf("%d\n",n); else printf("%d\n",n--); }
【简答题】阅读理解。 Once upon a time, there lived a rich man. He had a servant (仆人). He and the servant(仆人) loved wine and good food very much. Each time the rich man left his home, the servant would drink the wine...
【简答题】请写出以下程序的运行结果 #include int f(int x, int *y) { *y = x - 4; return x * x ; } void main() { int x = 3, a, b; b = f(x, &a); printf(”%d %d\n”, a, b); }
【单选题】下列结论中正确的是(      )
A.
极大值和极小值只能有一个
B.
极大值一定比极小值大
C.
极大值和极小值均可以有多个
D.
极值一定是最值
【判断题】15XLGLX.路肩最小高程设置应比设计洪水频率的水位连同波浪侵袭高和塞水高在内,再加1m富余量。
A.
正确
B.
错误
【单选题】下列结论中正确的是
A.
将 的图象向右平移 得到 的图象
B.
的一条对称轴是
C.
若 ,则
D.
的一个对称中心是
【判断题】升降速度表的功用不仅仅是用于测量飞机 升或下降时的单位时间内的高度变化量;它也用于飞机在平飞状态下,飞行员判断是否处于平飞姿态
A.
正确
B.
错误
【简答题】Once upon a time, there lived a rich man. He had a servant (仆人). He and the servant(仆人) loved wine and good food very much. Each time the rich man left his home, the servant would drink the wine and e...
【简答题】请写出以下程序的运行结果: #include void main( ) { int x=1,y=5,z=3; if (z=x) printf("%d\n",z); else printf("%d\n",y); }
【简答题】我国分别隔黄海、东海、南海与()、()、菲律宾、印度尼西亚、马来西亚、文莱等()个国家相望。
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题