A.2,3
B.2,4
C.1,4
D.1,2
[单选题]有以下程序typedef struct{int b,p;}A;void f(A c) /* 注意: c 是结构变量名 */{ int j;c.b+=1; c.p+=2;}main( ){ int i;A. a={1,2};f(a);printf("%d,%d/n",a.b,a.p);}程序运行后的输出结果是A.)2 , 3B.)2 , 4C.)1 , 4D.)1 , 2
[单选题]有以下程序: struct S{int n;int a[20];}; void f(int*a,int n) {int i; for(i=0;i<n-1;i++)a[i]+=i;} mainf() {int i;struct S s{10,{2,3,1,6,8,7,5,4,10,9}}; if(s.a,s.n); for(i=0;i<s.n;i++)printf("%d",s.a[i]);} 程序运行后的输出结果是( )。A.2,4,3,9,12,12,11,11,18,9B.3,4,2,7
[单选题]有以下程序:struct S{int n;int a[20];};void f(struct S*P){int i,j,t;for(i=0;in£1;i£«£«)fo有以下程序: struct S{int n;int a[20];}; void f(struct S*P) { int i,j,t; for(i=0;i<P->n-1;i++) for(j=j+1;j<P->n-1;j++) if(p->a[i]>p->a[j]) {t=P->a[i];p->a[i]=P->a[j];p->a[j
[单选题]有以下程序struct S {int n; int a[20];};void f(struct S *P){ int i,j,t;for(i=0;i<p->n-1;i++)for(j=i+1;j<p->n;j++)if(p->a[i]>p->a[j]) { t=p->a[i]; p->a[i]=p->a[j]; p->a[j]=t; }}main( ){ int i; struct S s={10,{2,3,1,6,8,7,5,4
[单选题]有以下程序段 typedef struct NODE {int num; struct NODE *next; }OLD; 以下叙述中正确的是A.以上的说朗形式非法B.NODE是一个结构体类型C.OLD是一个结构体类型D.OLD是一个结构体变量
[单选题]有以下程序#include
[单选题]有以下程序段: typedef struct NODE {int num; struct NODE *next; }OLD; 以下叙述中正确的是 ______。A.以上的说明形式非法B.NODE是一个结构体类型C.OLD是一一个结构体类型D.OLD是一个结构体变量
[单选题]有以下程序段 typedef struct node{ int data;struct node *next;}*NODE; NODE p; 以下叙述中正确的是A.p是指向struct node结构变量的指针的指针B.NODE p;语句出错C.p是指向struct node结构变量的指针D.p是struct node结构变量
[单选题]有以下程序段: typedef struct node(int data;struct node*next;)*NODE; NODE P; 以下叙述中正确的是( )。A.P是指向struct node结构变量的指针的指针B.NODE p;语句出错C.P是指向struct node结构变量的指针D.P是struct node结构变量
[单选题]有以下程序段typedef struct node { int data; struct node *next; } *NODE;NODE p;以下叙述正确的是A.)p 是指向 struct node 结构变量的指针的指针B.)NODE p ;语句出错C.)p 是指向 struct node 结构变量的指针D.)p 是 struct node 结构变量