• 2022-06-07
    在C#中定义一个数组,正确的代码为
    A: double arraya = new double[100];
    B: double[] arraya = new double[100];
    C: double arraya = new double[100];
    D: double[100] arraya = new double;
  • B

    内容

    • 0

      定义一个存储5个学生成绩的数组不正确的是() A: int[] score = new int[5]; B: int score[] = new int[5]; C: double[] score; score = new double[5]; D: double[] score = new double[];

    • 1

      double[,] strArray = new double[8,10]; 语句创建了____________个double对象

    • 2

      下面哪一个指针的类型不同于其它三个? A: auto p1 = new double; B: auto *p2 = new double{3.2}; C: auto p3 = new double[3]{1,2.2}; D: auto p4 = *new double[3]{1,2.2};

    • 3

      以下关于运算符new的用法,正确的是: A: int *p = new int[4]; B: int *q = new int{100}; C: char *s = new char[34.5]; D: double *pd = new double[10 * 15];

    • 4

      下面哪一个指针的类型不同于其它三个? A: auto p1 = new<br/>double; B: auto *p2 = new double{3.2}; C: auto p3 = new<br/>double[3]{1,2.2}; D: auto p4 =<br/>*new double[3]{1,2.2};