下列程序的运行结果为【14】#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,if\n”,a.a,a.b,a.c);}void f(struct A *t){strcpy(t-b,”ChangRong”); }

下列程序的运行结果为【14】

#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,if\n”,a.a,a.b,a.c);

}

void f(struct A *t)

{strcpy(t->b,”ChangRong”); }


相关考题:

阅读下列程序,则在执行后,程序的运行结果为#include "stdio.h"#include "string.h"main(){ char a[30]="nice to meet you!";strcpy(a+strlen(a)/2,"you");printf("%s\n",a);}A.nice to meet you youB.nice toC.meet you youD.nice to you

下列程序的运行结果为______。 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;}

下列程序的运行结果为【】。 include include {int a; char b[10]; double c;}; 下列程序的运行结果为【 】。include<stdio.h>include<string.h>{ 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.lf\n",a.a,a.b,a.C);}void f(struct A*t){ strcpy(t->b, "ChangRong");}

阅读下列程序,则在执行后,程序的运行结果为 #include"stdio.h" #include"string.h" main() { char a[30]="nice to meet you!"; strcpy(a+strlen(a)/2,"you"); printf("%s\n",a);}A.nice to meet you youB.nice toC.meet you youD.nice to you

有以下程序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 include using namespace std; void main() 以下程序的运行结果是【 】。include<iostream>include<string>using namespace std;void main(){chara[10]="China",b[]="Chin",c[]="ese";cout<<strlen(strcat(strcpy(a,b),c))<<endl;}

有以下程序:若运行时输入:2 4 6&lt;回车&gt;,则输出结果为( )。A.2 0 4B.2 0 0C.2 4 0D.2 4 6

下列表达式结果为“真”的是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;

阅读以下程序,给出运行结果 #include <iostream> #include <cstring> using namespace std; int main() { string str="I love China!"; cout << str; return 0; }

3、阅读下列程序,则在执行后,程序的运行结果为()  #include <string.h> #include<stdio.h> int main() { char a[30]="nice to meet you!"; strcpy(a+strlen(a)/2,"you"); printf("%s\n",a); }A.nice to meet you youB.nice toC.meet you youD.nice to you