2008年湖南省对口高考真题中,哪一道题的解题思路最让你印象深刻?

2026-04-10 08:280阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计1426个文字,预计阅读时间需要6分钟。

2008年湖南省对口高考真题中,哪一道题的解题思路最让你印象深刻?

一、编写程序结果:1

二、程序+1

三、输出结果:2

一、写程序结果

1、

#include <stdio.h> main() { char a=55; a=~a&055; printf("%x,%o",a,a); }

运行结果是____________________。

2008年湖南省对口高考真题中,哪一道题的解题思路最让你印象深刻?

2、

#include <stdio.h> #define test(x,y) x+y main() { float c; c=2*test(3.2,5.4)/2; printf("%6.1f",c); }

运行结果是____________________。

3、

#include <stdio.h> void fun() { int x=1; static int y=1; printf("%d%d",++x,y++); } main() { int i; for(i=0; i<2; i++) fun(); }

运行结果是____________________。

阅读全文

本文共计1426个文字,预计阅读时间需要6分钟。

2008年湖南省对口高考真题中,哪一道题的解题思路最让你印象深刻?

一、编写程序结果:1

二、程序+1

三、输出结果:2

一、写程序结果

1、

#include <stdio.h> main() { char a=55; a=~a&055; printf("%x,%o",a,a); }

运行结果是____________________。

2008年湖南省对口高考真题中,哪一道题的解题思路最让你印象深刻?

2、

#include <stdio.h> #define test(x,y) x+y main() { float c; c=2*test(3.2,5.4)/2; printf("%6.1f",c); }

运行结果是____________________。

3、

#include <stdio.h> void fun() { int x=1; static int y=1; printf("%d%d",++x,y++); } main() { int i; for(i=0; i<2; i++) fun(); }

运行结果是____________________。

阅读全文