【单选题】有以下程序 #include #include typedef struct { char name[9]; char sex; float score[2]; } STU; STU f(STU A) { STU b={"Zhao", 'm',85.0, 90.0}; int i; strcpy(a.name, b.name); a.sex = b.sex; for (...
【单选题】有以下程序: #include #include typedef struct { char name[9] ; char sex ; int score[2] ; } STU ; STU f (STU a) { STU b = {"Zhao" , 'm' , 85 , 90} ; int i ; strcpy( a.name , b.name ) ; a.sex = ...
A.
Zhao,m,85,90, Qian,f,95,92
B.
Zhao,m,85,90, Zhao,m,85,90
C.
Qian,f,95,92, Qian,f,95,92
D.
Qian,f,95,92, Zhao,m,85,90
【简答题】37.有以下程序 #include #include struct A { int a;
char b[10]; double c; }; struct A f(struct A t); main() { struct A a={1001,"ZhangDa",1098.0}; a=f(a); printf("%d,%s,%6.1f\n",a.a,a.b,a.c); } struct A ...
【单选题】有以下程序 #include #include struct A { int a; charb[10]; doublec; }; void f(struct A t); main() { structA a={1001,"ZhangDa",1098.0}; f(a); printf("%d,%s,%6.1f\n", a.a,a.b,a.c); } void f(struct A t) { t...
C.
1001, ChangRong,1098.0
【简答题】37.有以下程序
#include #define S(x) 4*(x)*x+1 main() { int k=5, j=2; printf("%d\n", S(k+j) );
}
程序运行后的输出结果是()A. 33 B. 197 C. 143 D. 28
【简答题】“染料、颜料及其他着色料”,该描述属于第 章的标题。
【单选题】有以下程序 #include #include void fun(int *p1,int *p2,int *s ) { s=( int * )malloc( sizeof(int) ); *s = *p1 + *(p2++); } main() { int a[2]={1,2 }, b[2]={10,20},*s=a; fun( a,b,s ); printf("%d\n", *s...
【单选题】有以下程序 #include main() { char c[2][5]={"6938","8254" }, *p[2]; int i, j, s=0; for( i=0; i0 ; j+=2 ) s=10*s+p[i][j]-'0'; printf("%d\n",s); } 程序运行后的输出结果是
【单选题】平屋顶指屋面坡度为多少的屋顶( ) A .小于5%B.小于10%C.小于8%D.小于3%