笔果题库
计算机二级C语言程序设计
VIP题库
搜题找答案,就上笔果题库
若要说明一个类型名STP,使得定义语句STP s;等价于char *s;,以下选项中正确的是______。
搜题找答案,就上笔果题库
有以下程序段typedef struct NODE{int numstruct NODE *next;}OLD;以下叙述中正确的是______。
搜题找答案,就上笔果题库
有以下程序#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 f(struct A t){ t.a=1002;strcpy(t.b,"ChangRong");t.c=1202.0;return t;}程序运行后的输出结果是______。
搜题找答案,就上笔果题库
以下关于typedef的叙述错误的是______。
搜题找答案,就上笔果题库
有以下程序#include#includestruct A{ int a;char b[10];double c;};void f(struct A t);main(){ struct A 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.a=1002;strcpy(t.b,"ChangRong");t.c=1202.0;}程序运行后的输出结果是______。
搜题找答案,就上笔果题库
以下结构体类型说明和变量定义中正确的是______。
搜题找答案,就上笔果题库
以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转储到链表的各个结点中,请为下划线处有号码的选择出正确的选项。#include stuct node{ char data; struct node *next;};______CreatList(char *s){ struct node *h,*p,*q);h=(struct node *) malloc(sizeof(struct node));p=q=h;while(*s!=''\0''){ p=(struct node *) malloc(sizeof(struct node));p->data=___(49)___;q->next=p;q=______;s++;}p->next=''\0'';return h;}main(){ char str[]="link list";struct node *head;head=CreatList(str);...}
搜题找答案,就上笔果题库
有如下定义 struct person{char name[9]; int age;}; struct person class[10] = { "John",17, "Paul",19, "Mary",18, "Adam",16,};根据上述定义,能输出字母M的语句是______。
搜题找答案,就上笔果题库
以下对结构体类型变量td的定义中,错误的是______。
搜题找答案,就上笔果题库
有如下定义:struct{ int num;char name[10];struct{ int y; int m; int d;} birth;} s,*ps=&s;以下对内嵌结构体成员的引用形式错误的是______。