In C language, when declaring a struct type, you must not omit the keyword "struct". ( )
举一反三
- 下述动态建立链表结点的标准C语法语句,( )是正确的 A: p = (struct LNode)malloc(sizeof(struct LNode)); B: p = (struct LNode *)malloc(sizeof(struct LNode *)); C: p = (struct LNode)malloc(sizeof(struct LNode *)); D: p = (struct LNode *) malloc(sizeof(struct LNode));
- 7. When you are learning a foreign language, _ , you must forget your own language. A: above all B: in first C: at the first D: after all
- 设有以下定义: struct node { int data; struct node *next; }*p; 则以下的语句中正确的是()。 A: p=malloc(sizeof(struct node)) B: p=(struct node *)malloc(sizeof(struct node)) C: *p=(struct node *)malloc(4) D: p=(struct node )malloc(sizeof(struct node))
- 以下定义错误的是( )。 未知类型:{'options': ['struct c{ int x;\xa0 \xa0 \xa0 int y;}s;', 'struct\xa0{ int x;\xa0 \xa0 \xa0 int y;}s;', 'struct c s{ int x;\xa0 \xa0 \xa0 int y;};', 'struct c{ int x;\xa0 \xa0 \xa0 int y;};Struct c s;'], 'type': 102}
- 以下结构体定义错误的是 A: struct ord {int x; int y} struct ord a; B: struct ord {int x; int y} ; struct ord a; C: struct ord {int x; int y} a; D: struct {int x; int y} a;