网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列程序的运行结果为【 1 4 】
#include <stdio.h>
#include <string.h>
struct 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,a.b,a.c);
}
void f(struct A *t)
{ strcpy(t->b,"ChangRong");}
参考答案
更多 “ 下列程序的运行结果为【 1 4 】#include stdio.h#include string.hstruct 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,a.b,a.c);}void f(struct A *t){ strcpy(t-b,"ChangRong");} ” 相关考题
考题
下列程序的运行结果为 include void main( ) { int a=2; int b=a+1; cout
下列程序的运行结果为#include<iostream.h>void main( ){int a=2;int b=a+1;cout < < a/b < < endl;}A.0.66667B.0C.0.7D.0.66666666…
考题
下列程序的运行结果为______。 include void main( ) { int i; for(i=1;i
下列程序的运行结果为______。include<iostream.h>void main( ){int i;for(i=1;i<6;i++)if(i==3)break;cout<<"i="<<i<<endl;}
考题
有以下程序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
考题
下列程序的运行结果为()。include void main(){int a=2;int b=a+1;cou
下列程序的运行结果为( )。 #include<iostream.h> void main() { int a=2; int b=a+1; cou<<afo<<endl; }A.0.66667B.0C.0.7D.0.66666666
考题
下列程序的运行结果为()。includevoid main(){int a=2;int b=a+1;cout
下列程序的运行结果为( )。 #include<iostream.h> void main() { int a=2; int b=a+1; cout<<a/b<<endl; }A.0.66667B.0C.0.7D.0.66666666…
考题
设a=1,b=2,c=3,d=4,则表达式:“ab?a:bb?a:cd?a:d”的结果为()。A.4B.3SXB
设a=1,b=2,c=3,d=4,则表达式:“a<;b?a:b<;b?a:c<;d?a:d”的结果为()。A.4B.3C.2D.1
考题
下列表达式结果为“真”的是A.2 #gt# 3 #and# 4 #gt# 2 ;B.2 #lt# 3 #and# 4 #lt# 2 ;C.2 #gt# 3 #and# 4 #lt# 2 ;D.2 #lt# 3 #and# 4 #gt# 2;
考题
7、已知lt=[1,2,3],下面表达式能够修改lt为[1,2,3,4]的是A.lt+=4B.lt.append(4)C.lt.insert(3,4)D.lt.insert(-1,4)
考题
假设: ls=[1,2,3,4,5] lt=ls ls[4]=1 print(lt[4]) 输出结果是:A.1B.3C.4D.5
热门标签
最新试卷