2008年湖南省对口高考真题中,哪一道题的解题思路最让你印象深刻?
- 内容介绍
- 文章标签
- 相关推荐
本文共计1426个文字,预计阅读时间需要6分钟。
一、编写程序结果:1
二、程序+1
三、输出结果:2
一、写程序结果
1、
#include <stdio.h>
main()
{
char a=55;
a=~a&055;
printf("%x,%o",a,a);
}
运行结果是____________________。
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分钟。
一、编写程序结果:1
二、程序+1
三、输出结果:2
一、写程序结果
1、
#include <stdio.h>
main()
{
char a=55;
a=~a&055;
printf("%x,%o",a,a);
}
运行结果是____________________。
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();
}
运行结果是____________________。

