• 2022-06-26
    下列选项中,不属于值类型的是(   )
    A: struct
    B: Int32
    C: Int
    D: string
  • D

    内容

    • 0

      下列那个类型是引用类型的是 A: enum类型 B: struct类型 C: String类型 D: int类型

    • 1

      下列选项中,属于引用类型的是___________ A: 枚举类型 B: 结构类型 C: string类型 D: int类型

    • 2

      Java语言中,String类中的indexOf()方法返回值的类型是() A: int16 B: int32 C: int D: long

    • 3

      下面是关于结构类型与变量的定义语句,错误的是________。 A: struct test{int a; int b; int c;}; struct test y; B: struct test{ int a; int b; int c;} struct test y; C: struct test{ int a; int b; int c;} y; D: struct { int a; int b; int c;} y;

    • 4

      下列对结构体类型变量定义不正确的是( ) A: struct teacher { int num; int age; }teach1; B: struct { int num; int age; }teach1,teach2; C: struct { int num; int age; }teacher; struct teacher teach1; D: struct teacher { int num; int age; }; struct teacher teach1;