如果有以下定义语句,则输出结果为()。struct{int x, y;}...d”, s[0].y/s[1].x );
1
举一反三
- 如果有定义语句:struct { int x,; int y; } s[2] = { { 1, 3 }, { 2, 7 } };则语句:printf(“%d\n”, s[0].y/s[1].x ); 输出结果为( )。 A: 0 B: 1 C: 2 D: 3
- 如果有定义语句: struct { int x, y; } s[2] = { { 1, 3 }, { 2, 7 } };则语句:printf(“%d\n”, s[0].y/s[1].x );输出的结果为。
- 如果有以下定义语句,则输出结果为()。struct{intx,y;}...d”,s[0].y/s[1].x);
- 有如下定义: struct { int x; char *y; }sa[2]={{1,"ab"},{2,"cd"}},*p=sa; 则:语句:printf("%s",(++p)->y); 的输出是 。
- 智慧职教: 设有定义语句“struct {int x;int y;} d[2]={{1,3},{2,7}};” ,则printf(“%d ”,d[0].y/d[0].x*d[1].x);的输出是:( )
内容
- 0
以下定义错误的是( )。 未知类型:{'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}
- 1
中国大学MOOC: 设有定义语句”struct {int x;int y;} d[2]={{1,3},{2,7}};”,则printf(“%d ”,d[0].y/d[0].x*d[1].x)”输出的是( )
- 2
若有以下定义和语句: struct st { int x; int y; }s; 则下列赋值正确的是
- 3
设有定义语句”struct {int x;int y;} d....x*d[1].x)”输出的是( )
- 4
如果有语句int x;chary[6];则下列正确的输人语句是()。 A: scanf("%d%s",x,y); B: scanf("%d%s",&x,y); C: scanf("%d%s",x,&y); D: scanf("%d%s",&x,&y);