设有如下说明typedef struct{ int number; char class;double score;}student;则以下选项中,能正确定义结构体数组并赋初值的语句是( )。A.student tt[2]={{189,’A’,62},{190,’B’,75}};B.student tt[2]={189,’"A",62,190,"B",75};C.struct tt[2]={{189,’A’},{190,’B’}};D.struct tt[2]={{189,"A",62.5},{190,"

题目

设有如下说明typedef struct{ int number; char class;double score;}student;则以下选项中,能正确定义结构体数组并赋初值的语句是( )。A.student tt[2]={{189,’A’,62},{190,’B’,75}};B.student tt[2]={189,’"A",62,190,"B",75};C.struct tt[2]={{189,’A’},{190,’B’}};D.struct tt[2]={{189,"A",62.5},{190,"B",75.0}};


相似考题
更多“设有如下说明typedef struct{ int number; char class;double score;}student;则以下选项中,能正 ”相关问题
  • 第1题:

    Python语句 print(type(1/2))的输出结果是:______

    A.< class 'int'>

    B.<class 'number'>

    C.<class 'float'>

    D.<class 'double>


    A

  • 第2题:

    Python语句print(ye(1/2))的输出结果是哪一项?

    A.<class 'int'>

    B.<class 'number'>

    C.<class 'float'>

    D.class <'double'>


    A

  • 第3题:

    各种基本数据类型的精度排列为()。

    A.int< char <float<double

    B.double<float <int<char

    C.char<int <float<double

    D.float<int <char<double


    A:④ B:② C:③ D:⑤ E:① A:④ B:② C:③ D:⑤ E:①

  • 第4题:

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

    A.char<int<float<double

    B.char<int<double<float

    C.char<short<float<int

    D.char<short<int<double


    char

  • 第5题:

    Python语句 print(type(1//2)的输出结果是:_____

    A.< class 'int'>

    B.< class 'number'>

    C.<class 'float'>

    D.<class 'double'>


    A

  • 第6题:

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

    A.char<int<float<double

    B.char<int<double<float

    C.char<short<float<int

    D.char<short<int<double


    char