• 2021-04-14
    如果有以下定义语句,则输出结果为()。struct{int x, y;}...d”, s[0].y/s[1].x );
  • 1

    内容

    • 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);