- 6
- 0
- 约3.06千字
- 约 4页
- 2023-05-10 发布于湖南
- 举报
2009 年高考
五、程序分析题(本大题共 3 小题,共 75 分)
30、阅读程序,写出运行结果。(每小题 5 分,共 25 分)
(1) #include stdio.h
main()
{ struct stu{
char name[10];
int age,sex;
}
printf(%d,sizeof(struct stu));
}
(2) #include stdio.h
main()
{
int x=68;
printf(%c,%d,x,~x);
}
(3) #include stdio.h
#include math.h
main()
{
double x=5.14;
int a=(int)floor(x);
int b=(int)pow(floor(x),3);
printf(%d,%d,a,b);
}
(4) #include stdio.h
main()
{
char **p,*t[]={computer,phone,mp4};
for(p=t+2;p=t,p--)
printf(%c ,*(*p+1));
}
(5) #include stdio.h
f(int arr[])
{
int i=0;
for(;arr[i]=10;i+=2)
printf(%d,arr[i]);
}
m
您可能关注的文档
最近下载
- CRPS电源设计向导 CRPS Design Guide r-2017.docx
- 中药学课件:60种常用中药鉴别(规培生).ppt VIP
- 创新管理(浙江大学)中国大学MOOC 慕课章节测验及期末考试客观题答案.docx VIP
- 2024年08月广东深圳市南山区机关事业单位公开招聘编外人员笔试历年典型考点解题思路附带答案详解.docx VIP
- 融入中国化学史进行课程思政教育的中学化学教学研究.pdf
- 第章 遥感图像辐射校正.ppt VIP
- 2026年课件-《高职美育教程》完整全套教学课件-新版.pptx
- 高中物理面试试讲真题汇总.docx VIP
- 精品解析:辽宁省县域重点高中2024-2025学年高一下学期期末考试 化学试题(解析版).docx VIP
- 第4章习题参考答案.ppt VIP
原创力文档

文档评论(0)