19 At the age of 10, Muren was able to use computer graphics technology to make things mov
A Right B Wrong C Not mentioned
A Right B Wrong C Not mentioned
A.student.num=10002;
B.student.name="高远";
C.student.age=19;
D.student.score=90;
#include
struct stu
{ int num; char name [10];int age;};
Void fun(struct stu *p)
{ printf("%s\n,p->name);}
main()
{ struct stu x[3]={ {01,”Zhang”,20},{02, ” Wang”,19},{03, ”zhao”,18} };
fun(x+2);
}
程序运行后的输出结果是
A)Zhang
B)Zhao
C)Wang
D)19
以下程序的输出结果是______。#include<stdio.h>struct stu{ int num; char name[10]; int age;};void fun(struct stu*p){ printf("%s\n",(*p).name);}main(){ struct stu students[3]={ {9801,"Zhang",20}, { 9802,"Wang",19}, { 9803,"Zhao",18} }; fun(students+2);}
A.Zhang
B.Zhao
C.Wang
D.18
#include$amp;struct stu { int num;char name[10];int age;};$br>
void fun(struct stu*p)
{ printf("%s\n",(*p).name);}
main
{ struct stu students[3]={{9801,"Zhang".20}, {9802,"Wang",19},{9803,"Zhao",1 8}}
fun(students+2); }
输出的结果是()。
A.Zhang
B.Zhao
C.Wang
D.18
A.printf("%s+%s=%d",s[0].name,s[1].name,s[0].age+s[1].age);
B.printf("%s+%s=%d",s[1].name,s[2].name,s[1].age+s[2].age);
C.printf("%s+%s=%d",s[2].name,s[1].name,s[2].age+s[1].age);
D.printf("%s+%s=%d",s[0].name,s[2].name,s[0].age+s[2].age);
A.printf("%c",class[3].name);
B.printf("%c",class[3].name[1]);
C.printf("%c",class[2].name[1]);
D.printf("%c",class[2].name[0]);
有如下定义: struct person{char name[9];int age;}; struct person class[10]={"Johu",17,"Paul",19,"Mary",18,"Adam",16,};根据上述定义,能输出字母M的语句是______。
A.printf("%c\n",class[3].name);
B.printf("%c\n",class[3].name[1]);
C.printf("%c\n",class[2].name[1]);
D.printf("%c\n",class[2].name[O]);
A.printf("%s",c[0].name);
B.printf("%s",c[1].name[0]);
C.printf("%s",c[2].name[1]);
D.printf("%s",c[3].name[2]);
A.printf("%s",&p+2->name);
B.printf("%s",&p+1->name);
C.printf("%s",p+2->name);
D.printf("%s",p+2.name);
有如下定义: struct person {char name[9];int age;} struct person class[10]={ "John",17, "Paul",19, "Mary",18, "Adam",16}; 能输出字母M的是()
A.printf("%c\n",class[3].name);
B.printf("%c\n",class[3].name[1]);
C.printf("%c\n",class[2].name[1]);
D.printf("%c\n",class[2].name[0]);
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!