单项选择题
有以下函数 #include struct stu {int mun; char name[10]; int age;}; viod fun(struct stu *p) { printf(“%s\n”,p->name);} mian() { struct stu x[3]={{01,”zhang”,20},{02,”wang”,19},{03,”zhao”,18}}; fun(x+2); } 程序运行输出结果是( )。
A.zhang
B.zhao
C.wang
D.19
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
设有以下程序段Struct MP3 {char name[20];Char color;Float price;}std,*ptr;ptr=& std;若要引用结构体变量std中的color成员,写法错误的是( )。
A.std.color
B.ptr-> color
C.std-> color
D.(*ptr) .color
点击查看答案&解析
单项选择题
有以下函数#include Viod exch(int t[ ]){t[0]=t[5];}{int x[10]={1,2,3,4,5,6,7,8,9,10},i=0;While(i<=4) {exch(&x[i])’i++;}for(i=0;i<5;i++) printf(“%d”,x[i]);printf(“ n”);}程序运行输出结果是( )。
A.2 4 6 8 10
B.1 3 5 7 9
C.1 2 3 4 5
D.6 7 8 9 10
点击查看答案&解析
相关试题
设文件test.txt中原已写入字符串Begin,执...
有以下程序#include mian(){int arr...
以下程序段的输出结果是( )。#include...
以下程序的输出结果是( )。#include ...
以下程序的功能是输出a数组中的所有字符串...