题目内容

有下列程序#include #include typedef struct stu {char name[9];char gender;int score;} STU;void f(STU *a){ STU c={"Sun", 'f', 90},*d=&c;a = d;strcpy(a->name,c.name);a->gender = c.gender;a->score = c.score;printf("%s,%c,%d,", a->name,a->gender, a->score);}main( ){ STU a={"Zhao", 'm', 85};f(&a);printf("%s,%c,%d", a.name,a.gender, a.score);}程序执行后的输出结果是()。

A. Zhao,m,85,Sun,f,90
B. Sun,f,90,Sun,f,90
C. Sun,f,90,Zhao,m,85
D. Zhao,m,85,Zhao,m,85

查看答案
更多问题

有如下程序#include struct person{char Name[10];int Age;};main(){struct person room[4] = {{"Zun", 11}, {"Liu", 10}, {"He", 12}, {"Zhao", 13}};printf("%s:%d", (room+3)->Name, (room+1)->Age);}程序运行后的输出结果是( )。

A. Liu:10
B. Zun:12
C. Zhao:10
D. He:11

有下列程序#include #include typedef struct stu {char name[9];char gender;int score;} STU;STU f(STU a){ STU c={"Sun", 'f', 90};strcpy(a.name,c.name);a.gender = c.gender;a.score = c.score;return a;}main( ){ STU a={"Zhao", 'm', 85},b={"Qian", 'f', 95} ;b=f(a);printf("%s,%c,%d,%s,%c,%d",a.name, a.gender, a.score, b.name,b.gender, b.score);}程序执行后的输出结果是()。

A. Zhao,m,85,Sun,f,90
B. Zhao,m,85,Qian,f,95
C. Sun,f,90,Sun,f,90
D. Sun,f,90,Qian,f,9

1.下列各种比例尺的地形图中,比例尺最大的是( )。

A.1:1000
B.1:2000
C.1:500
D.1:5000

2.在地形图上,量得A点高程为16.84米,B点高程为21.17米,AB距离为279.5米,则直线AB的坡度为( )。

A.-6.8%
B.1.5%
C.608%
D.-1.5%

答案查题题库