下列程序的运行结果为【14】
include
include
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,if\n”,a.a,a.b,a.c);
}
void f(struct A *t)
{strcpy(t->b,”ChangRong”); }
时间:2023-02-11 15:03:17
相似题目
-
下列程序段运行后,输出结果为()https://assets.asklib.com/images/image2/2017060614214097978.png
A . 42
B . 39
C . 6
D . 1
-
下列程序:
https://assets.asklib.com/images/image2/2017110813120113633.jpg
运行后程序输出的结果为()
A . a=40b=30
B . a=30b=40
C . a=30b=70
D . a=70b=40
-
写出下列程序的运行结果:publicclassX6_3_3{publicstaticvoidmain(String[]args){inta[]={36,25,48,14,55,40,32,66};intb1,b2;b1=b2=a[0];for(inti=1;i
-
下列程序的运行结果为( )。#includevoid main(){int a=2;int b=a+1;cout <
-
阅读下列程序,则在执行后,程序的运行结果为( ).#include stdio.h#include string.hmain( ){ char a[30]=nice to meet you!
-
下列程序运行后,输出的结果为( )B=1Do while b<40B=b*(b+1)LoopPrint B
-
下列程序的运行结果是( ) s =0; a=[12,13,14;15,16,17;18,19,20;21,22,23]; for k=a s=s+k; end disp(s ’ )
-
以下程序的运行结果是 。#define DEBUGmain(){int a=14,b=15,c;c=a/b;#ifdef DEBUGprintf(\a=%o,b=%o,\,a,b);#endifprintf(\c=%d\\n\,c);}
-
运行如下程序后, 命令窗口(command windows)显示的结果为( )s=0;a=[12,13,14;15,16,17;18,19,20];for k=as=s+k;enddisp(s');
-
下面程序段的运行结果是()。J=4K=5DO 1 M=1,J1K=K+MPRINT*,KENDA.13B.14C.15D.16
下面程序段的运行结果是()。 J=4 K=5 DO 1 M=1,J1 K=K+M PRINT*,K END
A.13
B.14
C.15
D.16
-
下列程序的运行结果为 include<iostream.h>void print(double a){cout<<++a;} void print(int a
下列程序的运行结果为 include<iostream.h> void print(double a) { cout<<++a; } void print(int a,int b) { cout<<b<<a; } Void main() { print(1.2); cout<<" "; print(3,4); }
A.1.2 34
B.2.2 34
C.1.2 43
D.2.2 43
-
以下程序运行后的输出结果是【】。main()int p[7]={11,13,14,15,16,17,18};int i=0,j=0;while(i<
以下程序运行后的输出结果是【】。main()int p[7]={11,13,14,15,16,17,18};int i=0,j=0;while(i<7&&p[i]%2! =1) j+=p[i++];printf("%d\n",j);}
-
下列程序的运行结果为()。
include(iostream.h>template(classTT>classFF{TTa1,a2,a3;public:FF(TTb1,TTb2,TTb3){a1=b1;a2=b2.;a3=b3;)TTSum(){returna1+a2+a3;}};voidmain(){FFx(int(1.1),2,3),y(int(4.2),5,6);cout$amp;
A.6.115.2
B.615
C.615.2
D.6.115
-
下列程序的输出结果为()。voidmain(){inta=14,b=1;printf("%d/n",(a&b)&&b);}
A.0
B.1
C.true
D.false
-
运行下列程序段之后,标签Label1显示的结果为()。A=10:B=30:IfA
A.10
B.30
C.1030
D.3010
-
下列程序的运行结果是()。 int y=5,x=14; y=((x=3*Y,x+1),x-1); printf("x=%d,y=%d",x,y);A. x
下列程序的运行结果是()。 int y=5,x=14; y=((x=3*Y,x+1),x-1); printf("x=%d,y=%d",x,y);
A. x=27,y=27
B.x=12,y=13
C.x=15,y=14
D.x=y=27
-
下列程序的运行结果为()。 include<iostream.h> void main { int a=2: int b=a+1: co
下列程序的运行结果为()。 include<iostream.h> void main { int a=2: int b=a+1: cout<<a/b<<endl:
A.0.66667
B.0
C.0.7
D.0.66666666…
-
若MVAR和SHOWW均为字符型内存变量,下列程序的结果是()。。MVAR=“*”SHOWW=[14&MVAR.50]?SHOWWA.
若MVAR和SHOWW均为字符型内存变量,下列程序的结果是()。。 MVAR=“*” SHOWW=[14&MVAR.50] ?SHOWW
A.”14*.05”
B.”14*50”
C.”14MVAR50”
D.700
-
下列程序的运行结果为include<iostream.h>int i=0;class A{public: A(){i++;}};void main(){
下列程序的运行结果为 include<iostream.h> int i=0; class A{ public: A(){i++;} }; void main() { A a,b[3] ,*c; c=b; cout << i << end1; }
A.2
B.3
C.4
D.5
-
采用以上类模板,下列程序运行的结果为()。
采用以上类模板,下列程序运行的结果为()。
<img src='https://img2.soutiyun.com/ask/2020-07-03/962633134406331.png' />
A.8, 8
B. 7, 7
C.7, 8
D. 8, 7
-
下列程序的运行结果为(); >
A.lloWorl
B.HelloWorl
C.lloWorld!
D.lloWorl
-
运行程序,输入75,程序的运行结果为()
A.不及格
B.良好
C.优秀
D.超出分数范围
-
以下程序的运行结果为:a=15 if a>13: print(5,end="") if a>14: print(20,end="
以下程序的运行结果为:a=15 if a>13: print(5,end="") if a>14: print(20,end="") if a>15: print(35,end="")()
-
运行下列程序 运行结果为: _____________ 。 ()