网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有以下程序
#inculde <stdio.h>
#inculde <string.h>
strtict A
{ int a;char B[10];douBle c;};
void F (struct A t);
main()
{ struct A a ={1001,”zhangDa”,1098.0};
F(a);printF(“%d,%s,%6.1F\n”,a.,a.B,a.c);
void F(struct A t)
{ t.a=1002;strcpy(t.B,”ChangRong”);t.c=1202.0;}
程序运行后的输出结果是
A.1001,zhangDa,1098.0
B.1002,ChangRong,1202.0
C.1001,ChangRong,10980
D.1002,zhangDa,1202.0
参考答案
更多 “ 有以下程序#inculde stdio.h#inculde string.hstrtict A{ int a;char B[10];douBle c;};void F (struct A t);main(){ struct A a ={1001,”zhangDa”,1098.0};F(a);printF(“%d,%s,%6.1F\n”,a.,a.B,a.c);void F(struct A t){ t.a=1002;strcpy(t.B,”ChangRong”);t.c=1202.0;}程序运行后的输出结果是A.1001,zhangDa,1098.0B.1002,ChangRong,1202.0C.1001,ChangRong,10980D.1002,zhangDa,1202.0 ” 相关考题
考题
以下哪个资源定位器的写法是正确是?()A.http://www.wls.com/lt/lt.htmB.http:||www.wls.com/lt/lt.htmC.http://www.wls.com\lt\lt.htmD.http:||www.wls.com\lt\lt.htm
考题
有以下程序includemain(){int a=5,b=lt; t=(a
有以下程序 #include<stdio.h> main() { int a=5,b=lt; t=(a<<2)|b;printf("%d\n",t); } 程序运行后的输出结果是______。A.21B.11C.6D.1
考题
若有运算符:>;、一、<;<;、%、sizeof,则它们按优先级(由高至低)的正确排列顺序为( )。A.%、sizeof、>;、<;<;、=B.sizeof、%、>;、一、<;<;C.sizeof、<;<;、>;、%、=D.sizeof、%、<;<;、>;、=
考题
设a、b和C都是int型变量,且a=3,b=4,c=5,则以下的表达式中值为0的表达式是( )。A.a&&bB.a<;=bC.a||b+c&&b-cD.!((a<;b)&&!c||1)
考题
有以下程序:当执行程序时,按下列方式输入数据(从第l列开始,<;CR>;代表回车,注意:回车也是一个字符]12<;CR>;34<;CR>;则输出结果是( )。A.12B.123C.1234D.12343
考题
有以下程序段: inti,j,m=0; for(i=1;i<;=15;i+=4) for(j一3;j<;=19;j+=4)m++; printf(‘‘%d\n‘‘,m); 程序段的输出结果是( )。A.12B.15C.20D.25
考题
设有一列表lt,实现下列功能: 判断lt中是否包含数字0 向lt新增数字0 返回数字0所在lt中的索引 lt的长度 lt中最大元素 清空lt
热门标签
最新试卷