下列语句段中,正确的是( )。A.struct {int x; float y; int a[2]; unsigned b[3]; char name[10]; };B.structstu { unsigneda[3]; unsigned b[4]; }x; int*p=&x.a;C.struc tsu { int a; float x[4]; }y={1,1.0}; floatdat a=y.x;D.stmct nd {int a,b; unsigned c[2]=5; };

题目

下列语句段中,正确的是( )。

A.struct {int x; float y; int a[2]; unsigned b[3]; char name[10]; };

B.structstu { unsigneda[3]; unsigned b[4]; }x; int*p=&x.a;

C.struc tsu { int a; float x[4]; }y={1,1.0}; floatdat a=y.x;

D.stmct nd {int a,b; unsigned c[2]=5; };


相似考题
更多“下列语句段中,正确的是()。A.struct {int x; float y; int a[2]; unsigned b[3]; char name[10]; ”相关问题
  • 第1题:

    各种基本数据类型的存贮空间正确的长度排列为()。

    A.int < char <float<double

    B.double<float <int<char

    C.char<int <float<double

    D.float<int <char<double


    Char<int<long<float<double

  • 第2题:

    各种基本数据类型的存贮空间正确的长度排列为()。

    A.char < int < float < double

    B.int < char < float < double

    C.double < float < int < char

    D.float < int < char < double


    C

  • 第3题:

    2、设int 型变量 a、b,float 型变量 x、y,char 型变量 ch 均已正确定义并赋值,正确的switch语句是()。

    A.switch (x + y) { ...... }

    B.switch (ch + 1 ) { ...... }

    C.switch ch { ...... }

    D.switch (a + b ); { ...... }


    B

  • 第4题:

    在32位系统中,基本数据类型所占字节长度,正确的是:

    A.char<int<float<double

    B.char<int<double<float

    C.char<short<float<int

    D.char<short<int<double


    char

  • 第5题:

    6、在32位系统中,基本数据类型所占字节长度,正确的是:

    A.char<int<float<double

    B.char<int<double<float

    C.char<short<float<int

    D.char<short<int<double


    char