Struct Struct st {int x;int *y;}*pt; Int a[]={1,2},b[]={3,4}
来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/04/29 11:49:32
Struct
Struct st {int x;int *y;}*pt; Int a[]={1,2},b[]={3,4}; Struct st c[2]={10,a,20,b}; Pt=c; 以下选项中的表达式为11的是 A.*pt->y B.pt->x C++pt->x D(pt++)->x Struct st c[2]={10,a,20,为什么数组元素有4个?不是应该2个的吗?
Struct st {int x;int *y;}*pt; Int a[]={1,2},b[]={3,4}; Struct st c[2]={10,a,20,b}; Pt=c; 以下选项中的表达式为11的是 A.*pt->y B.pt->x C++pt->x D(pt++)->x Struct st c[2]={10,a,20,为什么数组元素有4个?不是应该2个的吗?
“c[2]” 是一个结构数组 (数组的一种,数组的每个元素都是一个结构) 数组的维数是2 就是有2个结构 每个结构又有2个元素 所以应该是4个元素
Struct Struct st {int x;int *y;}*pt; Int a[]={1,2},b[]={3,4}
struct st{int x;int*y;}*p;inta[]={1,2},b[]={3,4};struct st c
struct st{int x,int*y;}*p; int s[]={5,6,7,8} st a[]={10,&s[0
struct m { int x; int *y; }*p; int a[4]={12,13,-40,100};
1. 有如下定义: struct {int x; int y; } s[2]={{1,2},{3,4}},*p=s; 写
#include struct ord { int x,y;} dt[2]={1,2,3,4}; main() {str
c语言的一道题若有以下程序段:struct st{int n;int *m;};int a=2,b=3,c=5;stru
struct ord {int x,y;}dt[2]={1,2,3,
struct S {int a,b;} data [2]={10,100,20,200}; mian() {struct
有以下定义的链表struct st{int n,struct st *next;}a[3]={5,&a[1],7,&a[
struct { int x; char *y; }tab[2]={{1,"ab"},{2,"cd"}},*p=tab;
11.有如下定义: struct{ int x; char *y; }tab[2]={{1,"ab"},{2,"cd"}