题目内容
(请给出正确答案)
[单选题]
3.以下程序运行结果是: #include <stdio.h> void main() { int x=3,y=2,z=1; printf("%d ",x/y&~z); }
A.3
B.2
C.1
D.0
如搜索结果不匹配,请 联系老师 获取答案
A.3
B.2
C.1
D.0
第1题
#include <stdio.h>
main()
{ int x=1,y=2,z=3;
if(x>y)
if(y<z) printf("%d",++z);
else printf("%d",++y);
printf("%d\n",x++);
}
程序的运行结果是
A)331
B)41
C)2
D)1
第2题
第3题
A.331
B.41
C.2
D.1
第4题
A、3,5
B、1,5
C、2,5
D、3,1
第5题
A.6,2
B.6,4
C.8,4
D.8,6
第6题
第7题
A.5,2,3
B.-5,-12,-7
C.-5,-12,-17
D.5,-2,-7
第8题
#include<stdio.h>
main
{ struct st
{ int y,x,z;
};
union
{ long i;
int j;
char k;
}un;
printf("%d,%d\n",sizeof(struct st),sizeof(un))
}
A.6,2
B.6,4
C.8,4
D.8,6
第9题
A.3 4
B.4 2
C.4 3
D.3 3
第10题
#include <stdio.h>
int f(int x)
{ int y;
if(x==0||x==1) return(3);
y=x*x-f(x-2);
return y;
}
main( )
{int z;
z=f(3); printf("%d\n",z);
}
程序的运行结果是
A)0
B)9
C)6
D)8
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!