写出下面程序执行后的运行结果。 #include <stdio.h> #define F(X,Y) (X)*(Y) int main() { int a=3, b=4; printf("%d", F(a++, b++)); return 0; }
第1题
#include<stdio.h>
#include<string.h>
structWorker{
charname[15];//姓名
intage;
//年龄
floatpay;
//工资
};
voidmain({
structWorkerx;
char*t="liouting";
intd=38;floatf=3493;
strcpy(x.name,t);
x.age=d;x.pay=f;
printf("%s%d
%6.0f/n",x.name,x.age,x.pay);
第2题
A.6
B.7
C.8
D.9
第3题
A、18.000000 2
B、18 2
C、18 2.000000
D、18.000000 2.000000
第4题
运行下面程序后的输出结果为_______。
#include <stdio.h>
main()
{int a=2,i;
for(i=0;i++<3;)
printf(“%d”,f(a)); printf(“\n”);
}
f(int x)
{int y=0;static int z=3;
y++,z++;
return (x+y+z);
}
第5题
(1)若以|x|<|Y|,f时可能是满射吗?为什么?
(2)若以|x1|>|Y|,f时可能是满射吗?为什么?
(3)若x=;f可能是单射吗?:可能是满射吗?
(4)X与Y分别满足什么条件时f可能是满射,单射和双射?
(5)思考你对(4)给出的条件,在x,Y为无限集时还适用吗?
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!