题库 第6164页
单选题:以下程序运行后的输出结果是
以下程序运行后的输出结果是#include #include struct S{ char name[10];};main() {struct S s1, s2;strcpy(s1.name, "XXX");strcpy(s…
单选题:有以下程序
有以下程序#include struct ball{ char color[10]; int dim; };main( ){ struct ball list[2] = {{"white", 2}, {"y…
单选题:设有定义:
设有定义: struct complex { int real,unreal;} data1={1,8},data2;则以下赋值语句中错误的是@[D](2)A. data2.real=data1.unreal;B. data…
单选题:有以下定义,能输出字母M的语句是
有以下定义,能输出字母M的语句是 struct person { char name[10]; int age; }; struct person class[10]={ "Johu",17,…
单选题:以下程序运行后的输出结果是
以下程序运行后的输出结果是#include struct tt{ int x; struct tt *y; } s[3]={ 1,0,2,0,3,0};main( ){ struct tt *p=s+1; p-˃y=s;…
单选题:以下程序运行后的输出结果是
以下程序运行后的输出结果是#include #include struct S{ char name[10]; };main() { struct S s1, s2; strcpy(s1.name, "12345")…
单选题:以下程序运行后的输出结果是:
以下程序运行后的输出结果是:#include struct S{ int a, b; }data[2]={10,100,20,200};main(){ struct S p=data[1]; printf("%d\n", +…
单选题:设有以下程序段
设有以下程序段struct person{float weight; char sex;char name[10]; } rec, *ptr;ptr = &rec;从键盘读入字符串给结构体变量rec的name成员,错误的输入语句是@…
单选题:
@[B](2)A. s -˃next='\0'; p=p-˃next; p-˃next=s;B. p=p-˃next; s -˃n…
单选题:假定已建立以下链表结构,且指针p和q已指向如图所示的结点:
假定已建立以下链表结构,且指针p和q已指向如图所示的结点:则以下选项中可将q所指结点从链表中删除并释放该结点的语句组是@[A](2)A.…